What is meant by trap-and-emulate virtualization?

Doubting picture Doubting · Dec 5, 2013 · Viewed 13k times · Source

I read the term trap-and-emulate virtualization in some articles on how to set up a virtual pc. Can anyone please tell me what this term means?

I understood that it definitely is some method for creating a virtual pc. But how is it done?

Answer

Khayam Gondal picture Khayam Gondal · Jul 8, 2014

An operation system is designed to have full control of the system. But when an OS is running as a virtual machine in a hypervisor, some of its instructions may conflict with the host operation system. So what does the hypervisor do? It emulates the effect of that specific instruction or action without carrying it out. In this way, the host OS is not effected by the guest's actions. This is called trap and emulate.