I am trying to understand how a virtual machine monitor (VMM) virtualizes the CPU.
My understanding right now is that the CPU issues a protection fault interrupt when a
I'm not an expert on computer architecture. But I have several opinions for your consideration:
load/store
from protected memory etc.system calls
. And if user program calls them, it will cause an exception (throws a software interrupt), which
vectors to a kernel handler, trap
to kernel modes and switch contexts.trap
to kernel mode. Depending on what happened it would be one of several traps, such as a memory access violation, an illegal instruction violation, or a register access violation. The trap switches the processor’s execution to kernel mode and switches control to the operating system, which then decides on a course of action. The address is defined by the trap vector, which is set up when the operating system starts up.