发明名称 Virtual device interrupt hinting in a virtualization system
摘要 A mechanism for virtual device interrupt hinting in virtualization systems is disclosed. A method of the invention includes receiving a virtual device event from a host central processing unit (CPU) of a multi-CPU host machine, the virtual device event directed to a virtual machine (VM) managed by the hypervisor on the host machine, identifying one or more virtual CPUs (VCPUs) of the VM that are running on the host CPU, and providing the identified one or more VCPUs of the VM as a hint to the VM, the hint sent to the VM with the virtual device event, wherein the VM programs a virtual device associated with the event to deliver interrupts to a VCPU of the VM identified in the hint.
申请公布号 US9411624(B2) 申请公布日期 2016.08.09
申请号 US201113302591 申请日期 2011.11.22
申请人 Red Hat Israel, Ltd. 发明人 Tsirkin Michael S.
分类号 G06F9/46;G06F9/455 主分类号 G06F9/46
代理机构 Lowenstein Sandler LLP 代理人 Lowenstein Sandler LLP
主权项 1. A method, comprising: receiving, by at least one processing device of a multi-central processing unit (CPU) host machine, a virtual device event received at a hypervisor executed by the at least one processing device, the virtual device event sent from a host CPU of the multi-CPU host machine, wherein the virtual device event comprises device level instructions of a device of the host machine directed to a virtual machine (VM) managed by the hypervisor on the host machine, wherein the device is emulated by the hypervisor as a virtual device for the VM; maintaining, by the processing device, a data structure for virtual CPU (VCPU)-to-host CPU mappings; responsive to receiving a type of the virtual device event for a first time at the VM, identifying, by the processing device from the VCPU-to-host CPU mapping of the data structure in a memory of the hypervisor, VCPUs corresponding to the VM that are running on the host CPU; generating, by the processing device via the hypervisor, a hint comprising the identified VCPUs of the VM; and providing, by the processing device via the hypervisor, the hint with the virtual device event to the VM, wherein the hint to cause the VM to program the virtual device to deliver interrupts to at least one of the identified VCPUs indicated in the hint.
地址 Raanana IL