Patent ID: 8732721

Claim:
A method for processing an instruction from a virtual machine (VM) monitor for reducing control transfer between a VM environment and a VM monitor environment, comprising: acquiring the instruction from a guest within the VM environment through the VM monitor; determining whether to trap the instruction based on a predetermined trap condition; where the trap condition specifies not to trap the instruction, executing the instruction; where the trap condition specifies to trap the instruction, determining whether to buffer the instruction based on a predetermined buffering condition; where the buffer condition specifies to buffer the instruction, writing the instruction to a buffer within a memory device, and returning control to the guest without exiting the VM environment; where the buffer condition specifies to not buffer the instruction, transferring control to the VM monitor environment and exiting the VM environment such that the guest does not have control, wherein the trap condition specifies whether to execute the instruction or to trap the instruction within the VM environment, wherein the buffering condition specifies whether to buffer the instruction and not exit the VM environment, or to not buffer the instruction and exit the VM environment.