Test_VM_Ints_Enabled

include vmm.inc

mov     ebx, VMHandle
mov     ebp, OFFSET32 Client_Reg_Struc
VMMCall Test_VM_Ints_Enabled
jz      VM_Interrupts_Disabled
 

Determines whether the current VM interrupts are enabled or disabled. Uses flags.

VMHandle
Handle of the virtual machine to be tested.
Client_Reg_Struc
Address of Client_Reg_Struc structure containing the contents of the virtual machine's registers.

Simply checking the interrupt flag in the client registers is not a sufficient means of testing the condition of a VM's interrupts since another thread in the VM may have disabled the interrupts.