Patentable/Patents/US-8347290
US-8347290

Monitoring spin locks in virtual machines in a computing system environment

PublishedJanuary 1, 2013
Assigneenot available in USPTO data we have
Inventorsnot available in USPTO data we have
Technical Abstract

Methods and apparatus involve monitoring spin locks for guest devices. Fully virtualized guests have multiple virtual processors configured under the scheduling control of a hypervisor on a physical hardware platform. The hypervisor posts On CPU and CR3 load information to shared communications pages for each of the processors. A monitoring module in the guest device monitors the pages to ascertain forward progress of the processors. If forward progress is being made, the virtual processors continue to spin. If not, the CPU's control is variously relinquished. The monitoring module typifies a kernel driver so that the guest can maintain an unmodified operating system. Ticket spin locks, and their ordering, are also considered as are computations for lock owners. Other features contemplate computing systems and computer program products, to name a few.

Patent Claims
7 claims

Legal claims defining the scope of protection, as filed with the USPTO.

1

1. In a computing system environment, a method of monitoring spin locks for guest computing devices having multiple virtual processors configured under the scheduling control of a hypervisor on a hardware platform having at least one physical processor and memory, comprising: determining which of the virtual processors is an owner of a spin lock under consideration; determining whether the owner is considered On CPU by the hypervisor; and relinquishing control of the physical processor to another of the virtual processors if the owner is not said considered On CPU and a ticket order of the virtual processors ahead of the owner are also not considered On CPU.

2

2. The method of claim 1 , further including determining whether CR3 loads have occurred within a predefined monitoring period before determining the owner.

3

3. The method of claim 1 , further including examining an interrupted program counter value.

4

4. The method of claim 3 , further including determining whether the program counter value is found within a spin lock code block.

5

5. The method of claim 1 , wherein the determining the owner further includes extracting an address of the spin lock from a saved register state of an interrupted context.

6

6. The method of claim 5 , wherein the ticket order is extracted from the saved register state.

7

7. In a computing system environment, a method of monitoring spin locks for guest computing devices having multiple virtual processors configured under the scheduling control of a hypervisor on a hardware platform having at least one physical processor and memory, comprising: determining which of the virtual processors is an owner of a spin lock under consideration; determining whether the owner is considered On CPU by the hypervisor; and relinquishing control of the physical processor to another of the virtual processors if the owner is not said considered On CPU and a ticket order of the virtual processors ahead of the owner are also not considered On CPU, wherein the ticket order is extracted from a saved register state of an interrupted context.

Classification Codes (CPC)

Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.

Patent Metadata

Filing Date

November 16, 2009

Publication Date

January 1, 2013

Want to explore more patents?

Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.

Citation & reuse

Analysis on this page is generated by Patentable — an AI-powered patent intelligence platform. AI-generated summaries, explanations, and analysis may be reused with attribution and a visible link back to the canonical URL below. Patent abstracts and claims are USPTO public domain.

Cite as: Patentable. “Monitoring spin locks in virtual machines in a computing system environment” (US-8347290). https://patentable.app/patents/US-8347290

© 2026 Patentable. All rights reserved.

Patentable is a research and drafting-assistant tool, not a law firm, and does not provide legal advice. Documents we generate are drafts for review by a licensed patent attorney.