pci-assign: Fix MSI-X capability test
commitc482c49b11f0db2db2a5c665b2e031285525a95f
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 22 Sep 2011 18:09:07 +0000 (22 12:09 -0600)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 3 Oct 2011 19:39:12 +0000 (3 16:39 -0300)
treeb507b8154485b33cde1193544f55c95d122b8fda
parent29ae226725108b3c1a61459f8624d2725a5160a6
pci-assign: Fix MSI-X capability test

Commit c4525754 added a capability check for KVM_CAP_DEVICE_MSIX,
which is unfortunately not exposed, resulting in MSIX never
being listed as a capability.  This breaks anything depending on
MSIX, such as igbvf.  Instead let's use a dummy call to
KVM_ASSIGN_SET_MSIX_NR which will return -EFAULT if the call
exists.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
hw/device-assignment.c