]> git.proxmox.com Git - qemu.git/commit
pci-assign: Enable MSIX on device to match guest
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 7 Jan 2013 04:30:31 +0000 (21:30 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 9 Jan 2013 10:11:16 +0000 (12:11 +0200)
commitfeb9a2ab4b0260d8d680a7ffd25063dafc7ec628
tree12fab7dbe07733955d3f851299c11015c1b65ca1
parent5c03a2542fbe1a275fe3dd7ebd48a6a283b249ed
pci-assign: Enable MSIX on device to match guest

When a guest enables MSIX on a device we evaluate the MSIX vector
table, typically find no unmasked vectors and don't switch the device
to MSIX mode.  This generally works fine and the device will be
switched once the guest enables and therefore unmasks a vector.
Unfortunately some drivers enable MSIX, then use interfaces to send
commands between VF & PF or PF & firmware that act based on the host
state of the device.  These therefore may break when MSIX is managed
lazily.  This change re-enables the previous test used to enable MSIX
(see qemu-kvm a6b402c9), which basically guesses whether a vector
will be used based on the data field of the vector table.

Cc: qemu-stable@nongnu.org
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/kvm/pci-assign.c