summaryrefslogtreecommitdiff
path: root/hw/9pfs/virtio-9p-device.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2013-01-06 21:30:31 -0700
committerMichael S. Tsirkin <mst@redhat.com>2013-01-09 12:11:16 +0200
commitfeb9a2ab4b0260d8d680a7ffd25063dafc7ec628 (patch)
tree12fab7dbe07733955d3f851299c11015c1b65ca1 /hw/9pfs/virtio-9p-device.c
parent5c03a2542fbe1a275fe3dd7ebd48a6a283b249ed (diff)
downloadqemu-feb9a2ab4b0260d8d680a7ffd25063dafc7ec628.tar.gz
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>
Diffstat (limited to 'hw/9pfs/virtio-9p-device.c')
0 files changed, 0 insertions, 0 deletions