主权项 |
1. A method comprising:
identifying, by a hypervisor executing on a computer system, a request of a guest operating system of a virtual machine in a shared device, wherein the shared device comprises a shared memory space between the virtual machine and the hypervisor; processing, by the hypervisor, the request of the guest operating system; polling, by the hypervisor, the shared device for additional requests; determining, by the hypervisor, that the shared device includes no additional requests of the guest operating system; identifying, by the hypervisor, at least one virtual processor of the virtual machine associated with the shared device; determining, by the hypervisor, an execution state of the at least one virtual processor; and disabling, by the hypervisor, the polling of the shared device for additional requests upon determining that the execution state of the at least one virtual processor indicates that the at least one virtual processor is not executing. |