summaryrefslogtreecommitdiffstats
path: root/hw/xen/xen_pt.c
diff options
context:
space:
mode:
authorEduardo Habkost2017-10-05 14:45:07 +0200
committerMichael S. Tsirkin2017-10-15 04:54:43 +0200
commit6d7023763ec8cc7999468769a0c6bf1335dc3bf4 (patch)
tree4797b5ced3bfef25aadc18b649a2f50f8c123506 /hw/xen/xen_pt.c
parentpci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices (diff)
downloadqemu-6d7023763ec8cc7999468769a0c6bf1335dc3bf4.tar.gz
qemu-6d7023763ec8cc7999468769a0c6bf1335dc3bf4.tar.xz
qemu-6d7023763ec8cc7999468769a0c6bf1335dc3bf4.zip
xen/pt: Mark TYPE_XEN_PT_DEVICE as hybrid
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>
Diffstat (limited to 'hw/xen/xen_pt.c')
-rw-r--r--hw/xen/xen_pt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c
index 01df3414d3..9bba717708 100644
--- a/hw/xen/xen_pt.c
+++ b/hw/xen/xen_pt.c
@@ -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 },
{ },
},
};