Quantcast
Channel: Active questions tagged hypervisor - Stack Overflow
Viewing all articles
Browse latest Browse all 248

Trap and emulation in virtualization

$
0
0

What is trap and emulation in virtualization? Is my understanding correct?

Trap is generated by VM when privilege instruction execution is failed in VM. Trap is generated by VM and sent it to Hypervisor.Now Hypervisor will emulate the trap and creates other privilege instruction and sent it to Hardware for execution (since hypervisor is in kernel mode or higher privilege mode). Once emulated trap response is sent back to Hypervisor by hardware then hypervisor will emulate the response back to the VM and it will make Guest OS feel that it is working on real hardware.


Viewing all articles
Browse latest Browse all 248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>