US 12,175,271 B2
Reducing latency for nested virtual machines
Michael Tsirkin, Raanana (IL); and Amnon Ilan, Raanana (IL)
Assigned to Red Hat, Inc., Raleigh, NC (US)
Filed by Red Hat, Inc., Raleigh, NC (US)
Filed on Jun. 29, 2021, as Appl. No. 17/305,033.
Prior Publication US 2022/0413884 A1, Dec. 29, 2022
Int. Cl. G06F 9/455 (2018.01); G06F 9/4401 (2018.01); G06F 9/48 (2006.01)
CPC G06F 9/45558 (2013.01) [G06F 9/4418 (2013.01); G06F 9/4812 (2013.01); G06F 2009/45566 (2013.01); G06F 2009/45575 (2013.01); G06F 2009/45595 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method comprising:
running, by a host computer system, a hypervisor managing a first virtual machine associated with a first virtual processor (vCPU) implemented by a first processing thread, wherein the first virtual machine manages a second virtual machine;
creating, by the hypervisor, a second processing thread implementing a second vCPU associated with the second virtual machine;
responsive to receiving an interrupt directed to the second virtual machine, causing, by a processing device executing the hypervisor, the second processing thread to process the interrupt;
maintaining, in the hypervisor, based on the first virtual machine and the second virtual machine, a total runtime and a total number of interrupts; and
delivering, by the hypervisor to a memory of the first virtual machine, the total runtime and the total number of interrupts.