OSDN Git Service

xen/pt: Mark TYPE_XEN_PT_DEVICE as hybrid
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 5 Oct 2017 12:45:07 +0000 (09:45 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 15 Oct 2017 02:54:43 +0000 (05:54 +0300)
xen-pt doesn't set the is_express field, but is supposed to be
able to handle PCI Express devices too.  Mark it as hybrid.

Suggested-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/xen/xen_pt.c

index 01df341..9bba717 100644 (file)
@@ -966,6 +966,7 @@ static const TypeInfo xen_pci_passthrough_info = {
     .class_init = xen_pci_passthrough_class_init,
     .interfaces = (InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
+        { INTERFACE_PCIE_DEVICE },
         { },
     },
 };