Skip to content

Commit

Permalink
hw/vfio/pci-quirks: Set category of the "vfio-pci-igd-lpc-bridge" device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
huth authored and awilliam committed Feb 10, 2017
1 parent ac2a986 commit f23363e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/vfio/pci-quirks.c
Expand Up @@ -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;
Expand Down

0 comments on commit f23363e

Please sign in to comment.