# US 2021/0342173 A1 · Dynamic power management states for virtual machine migration

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0342173 A1
- Document ID: US20210342173A1
- Status: Published application
- Kind: A1
- Application number: 16/862,461
- Filed: 2020-04-29
- Published: 2021-11-04
- Earliest claimed: 2020-04-29
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Michael Tsirkin
- Web page: https://patentgrep.com/patent/US20210342173A1

## CPC

- G06F 1/3206: Monitoring of events, devices or parameters that trigger a change in power modality
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 1/3203: Power management, i.e. event-based initiation of a power-saving mode
- G06F 1/324: by lowering clock frequency
- G06F 1/3296: by lowering the supply or operating voltage
- G06F 9/30076: {to perform miscellaneous control operations, e.g. NOP}
- G06F 9/45545: {Guest-host, i.e. hypervisor is an application program itself, e.g. VirtualBox}
- G06F 9/4812: {by interrupt, e.g. masked}
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F 11/301: {where the computing system is a virtual computing platform, e.g. logically partitioned systems (virtual machines G06F9/45533; logical partitioning of resources G06F9/5077)}
- G06F 11/3062: {where the monitored property is the power consumption (power management in a computing system G06F1/3203)}
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45591: {Monitoring or debugging support}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Systems and methods for supporting dynamic power management states for virtual machine (VM) migration are disclosed. In one implementation, a processing device may generate, by a host computer system, a host power management data structure specifying a plurality of power management states of the host computer system. The processing device may also detect that a VM has been migrated to the host computer system. The processing device may then prevent the VM from performing power management operations and may cause the virtual machine to read the host power management data structure. Responsive to receiving a notification that the VM has read the host power management data structure, the processing device may enable the VM to enter a first power management state of the plurality of power management states.

## Claims

### Claim 1

A method comprising:
generating, by a host computer system, a host power management data structure specifying a plurality of power management states of the host computer system;
detecting that a virtual machine (VM) has been migrated to the host computer system;
preventing the VM from performing power management operations;
causing the virtual machine to read the host power management data structure; and
responsive to receiving a notification that the VM has read the host power management data structure, enabling the VM to enter a first power management state of the plurality of power management states.

### Claim 2 (depends on 1)

The method of claim 1, wherein causing the VM to read the host power management data structure further comprises:
causing the VM to update internal data structures with the plurality of power management states of the host computer system based on the host power management data structure.

### Claim 3 (depends on 1)

The method of claim 1, wherein the host power management data structure comprises at least one of a CST object or a Low Power Idle (LPI) table defined by Advanced Configuration and Power Interface (ACPI).

### Claim 4 (depends on 3)

The method of claim 3, wherein causing the VM to read the host power management data structure further comprises:
sending a LPI change interrupt to the VM comprising the host power management data structure.

### Claim 5 (depends on 1)

The method of claim 1, wherein the host computer system generates the host power management data structure during a start up process of the host computer system.

### Claim 6 (depends on 1)

The method of claim 1, wherein preventing the VM from performing power management operations further comprises:
receiving a request from the VM to enter the first power management state;
performing a NOP instruction; and
returning an execution control to the VM.

### Claim 7 (depends on 1)

The method of claim 1, wherein receiving the notification that the VM has read the host power management data structure further comprises:
reading a value stored by the VM at a predetermined address.

### Claim 8 (depends on 1)

The method of claim 1, wherein the VM to send the notification that the VM has read the host power management data structure using a paravirtualized interface.

### Claim 9

A system comprising:
a memory;
a processing device operatively coupled to the memory, the processing device to:
generate a host power management data structure specifying a plurality of power management states of the host computer system;
detect that a virtual machine (VM) has been migrated to the host computer system;
prevent the VM from performing power management operations;
cause the virtual machine to read the host power management data structure; and
responsive to receiving a notification that the VM has read the host power management data structure, enable the VM to enter a first power management state of the plurality of power management states.

### Claim 10 (depends on 9)

The system of claim 9, wherein to cause the VM to read the host power management data structure, the processing device is further to:
cause the VM to update internal data structures with the plurality of power management states of the host computer system based on the host power management data structure.

### Claim 11 (depends on 9)

The system of claim 9, wherein the host power management data structure comprises at least one of a CST object or a Low Power Idle (LPI) table defined by Advanced Configuration and Power Interface (ACPI).

### Claim 12 (depends on 11)

The system of claim 11, wherein to cause the VM to read the host power management data structure, the processing device is further to:
send a LPI change interrupt to the VM comprising the host power management data structure.

### Claim 13 (depends on 9)

The system of claim 9, wherein the host computer system generates the host power management data structure during a start up process of the host computer system.

### Claim 14 (depends on 9)

The system of claim 9, wherein to prevent the VM from performing power management operations, the processing device is further to:
receive a request from the VM to enter the first power management state;
perform a NOP instruction; and
return an execution control to the VM.

### Claim 15 (depends on 9)

The system of claim 9, wherein to receive the notification that the VM has read the host power management data structure, the processing device is further to:
read a value stored by the VM at a predetermined address.

### Claim 16

A non-transitory computer-readable media storing instructions that, when executed, cause a processing device to:
generate a host power management data structure specifying a plurality of power management states of the host computer system;
detect that a virtual machine (VM) has been migrated to the host computer system;
prevent the VM from performing power management operations;
cause the virtual machine to read the host power management data structure; and
responsive to receiving a notification that the VM has read the host power management data structure, enable the VM to enter a first power management state of the plurality of power management states.

### Claim 17 (depends on 16)

The non-transitory computer-readable media of claim 16, wherein to cause the VM to read the host power management data structure, the processing device is further to:
cause the VM to update internal data structures with the plurality of power management states of the host computer system based on the host power management data structure.

### Claim 18 (depends on 16)

The non-transitory computer-readable media of claim 16, wherein to cause the VM to read the host power management data structure, the processing device is further to:
send a LPI change interrupt to the VM comprising the host power management data structure.

### Claim 19 (depends on 16)

The non-transitory computer-readable media of claim 16, wherein to prevent the VM from performing power management operations, the processing device is further to:
receive a request from the VM to enter the first power management state;
perform a NOP instruction; and
return an execution control to the VM.

### Claim 20 (depends on 16)

The non-transitory computer-readable media of claim 16, wherein to receive the notification that the VM has read the host power management data structure, the processing device is further to:
receive data at a predetermined input/output (I/O) port, the data is sent to the I/O port by the VM.
