# US 2021/0173693 A1 · Assigning devices to virtual machines in view of power state information

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

- Number: US 2021/0173693 A1
- Document ID: US20210173693A1
- Status: Published application
- Kind: A1
- Application number: 17/156,221
- Filed: 2021-01-22
- Published: 2021-06-10
- Earliest claimed: 2019-04-11
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Michael Tsirkin
- Web page: https://patentgrep.com/patent/US20210173693A1

## CPC

- H04L 43/0817: by checking functioning
- G06F 1/28: Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
- G06F 1/3206: Monitoring of events, devices or parameters that trigger a change in power modality
- G06F 1/3287: by switching off individual functional units in the computer system
- G06F 3/0635: {by changing the path, e.g. traffic rerouting, path reconfiguration}
- G06F 3/065: {Replication mechanisms}
- G06F 9/45537: {Provision of facilities of other operating environments, e.g. WINE (I/O emulation G06F13/105)}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/5044: {considering hardware capabilities}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 9/5088: {involving task migration}
- H04L 12/12: Arrangements for remote connection or disconnection of substations or of equipment thereof
- H04L 41/122: of virtualised topologies, e.g. software-defined networks [SDN] or network function virtualisation [NFV]
- H04L 67/08: specially adapted for terminal emulation, e.g. Telnet
- G06F 9/4418: {Suspend and resume; Hibernate and awake}
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F 2009/45591: {Monitoring or debugging support}
- H04L 41/0816: the condition being an adaptation, e.g. in response to network events
- H04L 67/1001: for accessing one among a plurality of replicated servers
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- Y02D 30/50: in wire-line communication networks, e.g. low power modes or reduced link rate
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- 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

In one implementation, a method of sharing a physical device between multiple virtual machines is provided. The method includes receiving, from a first virtual machine, a request to access a physical device of a computing device. The method also includes assigning, by a processing device, the physical device to the first virtual machine in view of power state information associated with the physical device of the computing device, wherein the power state information is received from one or more other virtual machines of the computing device.

## Claims

### Claim 1

A method, comprising:
receiving, from a first virtual machine, a request to access a physical device of a computing device; and
assigning, by a processing device, the physical device to the first virtual machine in view of power state information associated with the physical device of the computing device, wherein the power state information is received from one or more other virtual machines of the computing device.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
the power state information comprises data indicating that a second virtual machine has transitioned a virtual device of the second virtual machine to a reduced power state;
the reduced power state indicates that the second virtual machine is no longer using the virtual device; and
the virtual device is as associated with the physical device of the computing device.

### Claim 3 (depends on 1)

The method of claim 1, wherein receiving the request to access the physical device of the computing device comprises:
receiving, from the first virtual machine, a second power state information indicating a second request to transition a virtual device of the first virtual machine to an active power state, wherein the virtual device is associated with the physical device of the computing device.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
determining whether the physical device of the computing device is available in view of power state information associated with the physical device of the computing device.

### Claim 5 (depends on 4)

The method of claim 4, wherein the physical device is assigned to the first virtual machine in response to determining that the physical device of the computing device is available.

### Claim 6 (depends on 4)

The method of claim 4, wherein determining whether the physical device of the computing device is available in view of power state information associated with the physical device of the computing device comprises:
determining whether any virtual devices of the first virtual machine and the one or more other virtual machines are in an active power state, in view of the power state information; and
in response to determining that no virtual devices of the first virtual machine and the one or more other virtual machines are in an active power state, determining that the physical device is available.

### Claim 7 (depends on 4)

The method of claim 4, further comprising:
in response to determining that the physical device of the computing device is unavailable, reassigning the physical device of the computing device to the first virtual machine from a second virtual machine, wherein the second virtual machine was previously assigned the physical device.

### Claim 8 (depends on 4)

The method of claim 4, further comprising:
in response to determining that the physical device of the computing device is unavailable, preventing the first virtual machine from accessing to the physical device of the computing device.

### Claim 9 (depends on 4)

The method of claim 4, further comprising:
in response to determining that the physical device of the computing device is unavailable:
periodically analyzing additional power state information received from the one or more other virtual machines to determine when the physical device of the computing device becomes available; and
reassigning the physical device of the computing device to the first virtual machine in response to determining that the physical device has become available.

### Claim 10 (depends on 4)

The method of claim 4, further comprising:
in response to determining that the physical device of the computing device is unavailable, providing a message to a user, wherein the message indicates that the first virtual machine is requesting access to the physical device of the computing device.

### Claim 11 (depends on 4)

The method of claim 4, further comprising:
in response to determining that the physical device of the computing device is unavailable, providing a message to the first virtual machine, wherein the message indicates that the physical device of the computing device is unavailable.

### Claim 12

An apparatus, comprising:
a memory to store data;
a processing device operatively coupled to the memory, the processing device to:
receive, from a first virtual machine, a request to access a physical device of a computing device; and
assign, by a processing device, the physical device to the first virtual machine in view of power state information associated with the physical device of the computing device, wherein the power state information is received from one or more other virtual machines of the computing device.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the processing device is further to:
determine whether the physical device of the computing device is available in view of power state information associated with the physical device of the computing device.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the physical device is assigned to the first virtual machine in response to determining that the physical device of the computing device is available.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein the processing device is further to:
in response to determining that the physical device of the computing device is unavailable, reassign the physical device of the computing device to the first virtual machine from a second virtual machine, wherein the second virtual machine was previously assigned the physical device.

### Claim 16 (depends on 13)

The apparatus of claim 13, wherein the processing device is further to:
in response to determining that the physical device of the computing device is unavailable, prevent the first virtual machine from accessing to the physical device of the computing device.

### Claim 17 (depends on 13)

The apparatus of claim 13, wherein the processing device is further to:
in response to determining that the physical device of the computing device is unavailable:
periodically analyze additional power state information received from the one or more other virtual machines to determine when the physical device of the computing device becomes available; and
reassign the physical device of the computing device to the first virtual machine in response to determining that the physical device has become available.

### Claim 18 (depends on 13)

The apparatus of claim 13, wherein the processing device is further to:
in response to determining that the physical device of the computing device is unavailable, provide a message to a user, wherein the message indicates that the first virtual machine is requesting access to the physical device of the computing device.

### Claim 19 (depends on 13)

The apparatus of claim 13, wherein the processing device is further to:
in response to determining that the physical device of the computing device is unavailable, provide a message to the first virtual machine, wherein the message indicates that the physical device of the computing device is unavailable.

### Claim 20

A non-transitory computer-readable storage medium including instructions that, when executed by a processing device, cause the processing device to:
receive, from a first virtual machine, a request to access a physical device of a computing device; and
assign, by a processing device, the physical device to the first virtual machine in view of power state information associated with the physical device of the computing device, wherein the power state information is received from one or more other virtual machines of the computing device.
