]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/virtio-pci.h
virtio/vhost: Add support for KVM in-kernel MSI injection
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 17 May 2012 13:32:39 +0000 (10:32 -0300)
committerAvi Kivity <avi@redhat.com>
Mon, 21 May 2012 16:22:50 +0000 (19:22 +0300)
commit7d37d351dffee60fc7048bbfd8573421f15eb724
tree19e988d239f10b8bb538e2e13d6617f25f6b99f5
parentcb697aaab9c1d8078721513a11cb1ce2729b9c92
virtio/vhost: Add support for KVM in-kernel MSI injection

Make use of the new vector notifier to track changes of the MSI-X
configuration of virtio PCI devices. On enabling events, we establish
the required virtual IRQ to MSI-X message route and link the signaling
eventfd file descriptor to this vIRQ line. That way, vhost-generated
interrupts can be directly delivered to an in-kernel MSI-X consumer like
the x86 APIC.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/virtio-pci.c
hw/virtio-pci.h