Method and apparatus for facilitating recognition of an open event window during operation of guest software in a virtual machine environment
First Claim
Patent Images
1. An apparatus comprising a processor to:
- receive a request to transition control from a virtual machine monitor (VMM) to a virtual machine (VM);
determine that the request to transition control is associated with a request to be informed of an open event window of the VM, based on accessing a pending event indicator maintained by the VMM and determining that the pending event indicator maintained by the VMM is set to a delivery value;
transition control to the VM in response to the request to transition control to the VM From the VMM;
perform an event window check to determine whether an event window of the VM is open;
transition control to the VMM if the event window check indicates that the event window of the VM is open; and
if the VM does not have an open event window, repeat the event window check after each instruction executed by the VM until determining that the VM has the open event window.
0 Assignments
0 Petitions
Accused Products
Abstract
In one embodiment, a method includes transitioning control to a virtual machine (VM) upon receiving a request from a virtual machine monitor (VMM), determining that the request to transition control is associated with a request to be informed of an open event window, performing an event window check to determine whether an even window of the VM is open, and transitioning control to the VMM if the event window check indicates that the event window of the VM is open.
-
Citations
13 Claims
-
1. An apparatus comprising a processor to:
-
receive a request to transition control from a virtual machine monitor (VMM) to a virtual machine (VM); determine that the request to transition control is associated with a request to be informed of an open event window of the VM, based on accessing a pending event indicator maintained by the VMM and determining that the pending event indicator maintained by the VMM is set to a delivery value; transition control to the VM in response to the request to transition control to the VM From the VMM; perform an event window check to determine whether an event window of the VM is open; transition control to the VMM if the event window check indicates that the event window of the VM is open; and if the VM does not have an open event window, repeat the event window check after each instruction executed by the VM until determining that the VM has the open event window. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A processor, comprising:
-
an interrupt request pin to receive a hardware interrupt signal input; and a hardware reorder buffer (ROB) logic, connected with the hardware interrupt request pin, to receive an interrupt window state signal input, an interrupt control signal input and at least one of the hardware interrupt signal input or a pending interrupt signal input, wherein the interrupt window state signal input indicates whether an interrupt window of a virtual machine (VM) is open, the interrupt control signal input indicates whether a pending interrupt is controlled by the VM or by a virtual machine monitor (VMM), the hardware interrupt signal input indicates that the pending interrupt is a hardware interrupt, and the pending interrupt signal input indicates that the pending interrupt is ready to be delivered to the VM by the VMM; the ROB logic to assert a first signal output when the hardware interrupt signal input is received, the interrupt control signal input indicates that the pending interrupt is controlled by the VM, and the interrupt window state signal input indicates that the VM'"'"'s interrupt window is open, the first signal output indicating that a VM entry is to be generated, wherein the VM entry causes a transition of control from the VMM to the VM; the ROB logic to assert a second signal output when the interrupt window state signal input indicates that the VM'"'"'s interrupt window is open and the pending interrupt signal input is received, the second signal output indicating that a VM exit is to be generated due to the open interrupt window, wherein the VM exit causes a transition of control from the VM to the VMM. - View Dependent Claims (7, 8, 9)
-
-
10. A method for a processor, comprising:
-
receiving an interrupt window state signal input by a hardware reorder buffer (ROB) logic, wherein the interrupt window state signal input indicates whether an interrupt window of a virtual machine (VM) is open; receiving an interrupt control signal input by the ROB logic, wherein the interrupt control signal input indicates whether interrupts are controlled by the VM or by a virtual machine monitor (VMM); receiving at least one of a hardware interrupt signal input or a pending interrupt signal input by the ROB logic, wherein the hardware interrupt signal input indicates that a pending interrupt is a hardware interrupt, and the pending interrupt signal input indicates that the pending interrupt is ready to be delivered to the VM by the VMM; asserting a first signal output when the hardware interrupt signal input is received, the interrupt control signal input indicates that the pending interrupt is controlled by the VM, and the interrupt window state signal input indicates that the VM'"'"'s interrupt window is open, the first signal output indicating that a VM entry is to be generated, wherein the VM entry causes a transition of control from the VMM to the VM; and asserting a second signal output when the interrupt window state signal input indicates that the VM'"'"'s interrupt window is open and the pending interrupt signal input is received, the second signal output indicating that a VM exit is to be generated due to the open interrupt window, wherein the VM exit causes a transition of control from the VM to the VMM. - View Dependent Claims (11, 12, 13)
-
Specification