Detecting bus locking conditions and avoiding bus locks
First Claim
Patent Images
1. A processor comprising:
- a register to store a bus-lock-disable bit; and
an execution unit to execute instructions, wherein the execution unit is to;
receive an instruction that includes a memory access request;
determine that the memory access request requires acquiring a bus lock;
responsive to detecting that the bus-lock-disable bit indicates that bus locks are disabled, signal a fault to an operating system; and
responsive to a determination that the memory access request originates from a virtual machine (VM) and that a bus-lock-exit bit is enabled within a virtual machine control structure (VMCS) associated with the VM, perform a VM exit of the VM to a virtual machine monitor (VMM), to preempt execution of the VM in lieu of acquiring the bus lock.
1 Assignment
0 Petitions
Accused Products
Abstract
A processor may include a register to store a bus-lock-disable bit and an execution unit to execute instructions. The execution unit may receive an instruction that includes a memory access request. The execution may further determine that the memory access request requires acquiring a bus lock, and, responsive to detecting that the bus-lock-disable bit indicates that bus locks are disabled, signal a fault to an operating system.
-
Citations
24 Claims
-
1. A processor comprising:
-
a register to store a bus-lock-disable bit; and an execution unit to execute instructions, wherein the execution unit is to; receive an instruction that includes a memory access request; determine that the memory access request requires acquiring a bus lock; responsive to detecting that the bus-lock-disable bit indicates that bus locks are disabled, signal a fault to an operating system; and responsive to a determination that the memory access request originates from a virtual machine (VM) and that a bus-lock-exit bit is enabled within a virtual machine control structure (VMCS) associated with the VM, perform a VM exit of the VM to a virtual machine monitor (VMM), to preempt execution of the VM in lieu of acquiring the bus lock. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system on a chip (SoC) comprising:
-
a memory to store a virtual machine control structure (VMCS); and a core coupled to the memory, wherein the core is to execute instructions of a virtual machine (VM), and wherein the core is to execute a virtual machine monitor (VMM) to control entry into and exit from the virtual machine; wherein the core is further to; execute VM extensions execution control instructions to detect a condition with reference to execution of the virtual machine that requires acquiring a bus lock; and responsive to detecting that a bus-lock-exiting bit is enabled by a field of the VMCS, perform a VM exit to the VMM to preempt execution of the virtual machine in lieu of acquiring the bus lock. - View Dependent Claims (10, 11, 12, 13)
-
-
14. A system comprising:
-
a memory to store a virtual machine control structure (VMCS); and a processor coupled to the memory, wherein the processor is to execute instructions of a virtual machine (VM), and wherein the processor is to execute a virtual machine monitor (VMM) to manage the virtual machine; wherein the processor is further to; execute VM extensions execution control instructions to detect a memory access in response to executing an instruction within the virtual machine that requires acquiring a bus lock; and responsive to detecting that a bus-lock-exiting bit is enabled within the VMCS, perform a VM exit to the VMM to preempt execution of the virtual machine in lieu of acquiring the bus lock. - View Dependent Claims (15, 16, 17)
-
-
18. A method comprising:
-
receiving, by execution unit of a processor, an instruction that generates a memory access request; determining, by the execution unit, that the memory access request requires acquiring a bus lock; responsive to determining that a bus-lock-disable bit is enabled within a register, transmitting, by the execution unit, a fault to an operating system; and responsive to determining that the memory access request originates from a virtual machine (VM) and that a bus-lock-exit bit is enabled within a virtual machine control structure (VMCS) associated with the VM, performing a VM exit of the virtual machine to a virtual machine monitor (VMM), to preempt execution of the VM in lieu of acquiring the bus lock. - View Dependent Claims (19, 20, 21, 22, 23, 24)
-
Specification