Managing safe removal of a passthrough device in a virtualization system
First Claim
Patent Images
1. A method comprising:
- receiving, by a processing device executing a hypervisor, a request from a guest for access to a passthrough device;
setting in a memory, by the hypervisor, a last accessed state associated with a virtual machine executing the guest, wherein the last accessed state indicates whether the guest accessed the passthrough device since a last reset of the virtual machine;
forwarding, by the hypervisor, the request to the passthrough device;
configuring, by the hypervisor, a host central processing unit (CPU) to send a subsequent access request directly to the passthrough device; and
in response to a virtual machine reset, clearing the last accessed state and instructing the host CPU to send a post-reset access request to the hypervisor.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods and systems for managing a removal of a passthrough device from a guest managed by a hypervisor in virtualized computing environment. A hypervisor receives a request from the guest for access to a passthrough device. The hypervisor sets, in a memory, a last accessed state associated with a virtual machine executing the guest. The hypervisor forwards the request to the passthrough device and configures the host CPU to send a subsequent access request directly to the passthrough device. In response to a virtual machine reset, the hypervisor clears the last accessed state and instructs the host CPU to send a post-reset access request to the hypervisor.
-
Citations
19 Claims
-
1. A method comprising:
-
receiving, by a processing device executing a hypervisor, a request from a guest for access to a passthrough device; setting in a memory, by the hypervisor, a last accessed state associated with a virtual machine executing the guest, wherein the last accessed state indicates whether the guest accessed the passthrough device since a last reset of the virtual machine; forwarding, by the hypervisor, the request to the passthrough device; configuring, by the hypervisor, a host central processing unit (CPU) to send a subsequent access request directly to the passthrough device; and in response to a virtual machine reset, clearing the last accessed state and instructing the host CPU to send a post-reset access request to the hypervisor. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory computer readable storage medium including instructions that, when executed by a processing device, cause the processing device to:
-
receive, by the processing device executing a hypervisor, a request from a guest for access to a passthrough device; set in a memory, by the hypervisor, a last accessed state associated with a virtual machine executing the guest, wherein the last accessed state indicates whether the guest accessed the passthrough device since a last reset of the virtual machine; forward, by the hypervisor, the request to the passthrough device; configure, by the hypervisor, a host CPU to send a subsequent access request directly to the passthrough device; and in response to a virtual machine reset, clear the last accessed state and instructing the host CPU to send a post-reset access request to the hypervisor. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. A computer system comprising:
-
a memory; a processing device, operatively coupled to the memory; and a hypervisor executed by the processing device and having access to the memory, the hypervisor to; receive a request from a guest for access to a passthrough device, set in the memory a last accessed state associated with a virtual machine executing the guest, wherein the last accessed state indicates whether the guest accessed the passthrough device since a last reset of the virtual machine, forward the request to the passthrough device, configure a host central processing unit (CPU) to send a subsequent access request directly to the passthrough device, and in response to a virtual machine reset, clear the last accessed state and instruct the host CPU to send a post-reset access request to the hypervisor. - View Dependent Claims (15, 16, 17, 18, 19)
-
Specification