pci-assign: Do not expose MSI/MSI-X if the kernel does not support it
commitc4525754d85157fc9ff866c99345303746617384
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 2 Aug 2011 12:27:26 +0000 (2 14:27 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 3 Aug 2011 20:28:55 +0000 (3 17:28 -0300)
tree4ea2523dcc391b51a6460e204cdc3f5734c62d23
parent1d4a4569e5498faf43d0ee813a1cb386df43e310
pci-assign: Do not expose MSI/MSI-X if the kernel does not support it

Add checks for KVM_CAP_ASSIGN_DEV_IRQ (MSI) and KVM_CAP_DEVICE_MSIX, do
not set up MSI/MSI-X if the required kernel features are missing.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
hw/device-assignment.c