(5) Handle: The hypervisor typically emulates the event and does (3), repeating the process
- Hypervisor determines the cause of VM exit from the context structure
- Intel: Exit reason field π28.2 RECORDING VM-EXIT INFORMATION AND UPDATING VM-ENTRY CONTROL FIELDS
- AMD: EXITCODE field π15.6 #VMEXIT
- Hypervisor emulates the event on behalf of the guest
- eg, for
CPUID
- inspects guest's
EAX
andECX
as input - updates guest's
EAX
,EBX
,ECX
,EDX
as output - updates guest's
RIP
- inspects guest's
- eg, for
- Hypervisor switches to the guest with
VMRESUME
/VMRUN