]> git.proxmox.com Git - qemu.git/commit
kvm: i386: Add classic PCI device assignment
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 30 Aug 2012 18:30:00 +0000 (20:30 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 10 Sep 2012 12:30:00 +0000 (15:30 +0300)
commitc3ebd3ba786e1be5449527e47001eded6b59322b
tree9c4301fa721fed318e3f625c511c76e14bdc1ed5
parentb139bd300f4f579c526d153efa4960c380e2b6e3
kvm: i386: Add classic PCI device assignment

This adds PCI device assignment for i386 targets using the classic KVM
interfaces. This version is 100% identical to what is being maintained
in qemu-kvm for several years and is supported by libvirt as well. It is
expected to remain relevant for another couple of years until kernels
without full-features and performance-wise equivalent VFIO support are
obsolete.

A refactoring to-do that should be done in-tree is to model MSI and
MSI-X support via the generic PCI layer, similar to what VFIO is already
doing for MSI-X. This should improve the correctness and clean up the
code from duplicate logic.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/kvm/Makefile.objs
hw/kvm/pci-assign.c [new file with mode: 0644]
hw/qdev-monitor.c