aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2017-02-10 13:12:03 -0700
committerAlex Williamson <alex.williamson@redhat.com>2017-02-10 13:12:03 -0700
commitf23363ea44abbd514b26f40f0fc449160d3397dc (patch)
tree2c593522b14fdfa899bb969f2efa5c968ae543c9 /hw
parentac2a9862b761f6ccabc35ac5d38c948dec97777d (diff)
downloadqemu-f23363ea44abbd514b26f40f0fc449160d3397dc.zip
qemu-f23363ea44abbd514b26f40f0fc449160d3397dc.tar.gz
qemu-f23363ea44abbd514b26f40f0fc449160d3397dc.tar.bz2
hw/vfio/pci-quirks: Set category of the "vfio-pci-igd-lpc-bridge" device
The device has "bridge" in its name, so it should obviously be in the category DEVICE_CATEGORY_BRIDGE. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/vfio/pci-quirks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/vfio/pci-quirks.c b/hw/vfio/pci-quirks.c
index ec0feca..e9b493b 100644
--- a/hw/vfio/pci-quirks.c
+++ b/hw/vfio/pci-quirks.c
@@ -1186,6 +1186,7 @@ static void vfio_pci_igd_lpc_bridge_class_init(ObjectClass *klass, void *data)
DeviceClass *dc = DEVICE_CLASS(klass);
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
+ set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
dc->desc = "VFIO dummy ISA/LPC bridge for IGD assignment";
dc->hotpluggable = false;
k->realize = vfio_pci_igd_lpc_bridge_realize;