Set_PM_Exec_Mode


include vmm.inc

VMMcall Set_PM_Exec_Mode

Forces the current virtual machine into protected mode. If the current virtual machine is already in protected mode, this service has no effect. Uses Flags.

Whenever possible, a virtual device should use the Begin_Nest_Exec service instead of this service.

Changing the execution mode of a virtual machine does not change the virtual machine's EAX, EBX, ECX, EDX, ESI, EDI, and EBP registers or most flags. The VM flag and IOPL flags change. The DS, ES, FS, GS, SS, ESP, CS, and EIP registers are restored to the previous values for V86 mode.

See also Begin_Nest_Exec, Set_V86_Exec_Mode