[{"id":1776740,"web_url":"http://patchwork.ozlabs.org/comment/1776740/","msgid":"<20170928041239.GC12504@umbus>","list_archive_url":null,"date":"2017-09-28T04:12:39","subject":"Re: [Qemu-devel] [PATCH v2 4/5] pci: Add\n\tINTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices","submitter":{"id":47,"url":"http://patchwork.ozlabs.org/api/people/47/","name":"David Gibson","email":"david@gibson.dropbear.id.au"},"content":"On Wed, Sep 27, 2017 at 04:56:34PM -0300, Eduardo Habkost wrote:\n> Add INTERFACE_CONVENTIONAL_PCI_DEVICE to all direct subtypes of\n> TYPE_PCI_DEVICE, except:\n> \n> 1) The ones that already have INTERFACE_PCIE_DEVICE set:\n> \n> * base-xhci\n> * e1000e\n> * nvme\n> * pvscsi\n> * vfio-pci\n> * virtio-pci\n> * vmxnet3\n> \n> 2) base-pci-bridge\n> \n> Not all PCI bridges are Conventional PCI devices, so\n> INTERFACE_CONVENTIONAL_PCI_DEVICE is added only to the subtypes\n> that are actually Conventional PCI:\n> \n> * dec-21154-p2p-bridge\n> * i82801b11-bridge\n> * pbm-bridge\n> * pci-bridge\n> \n> The direct subtypes of base-pci-bridge not touched by this patch\n> are:\n> \n> * xilinx-pcie-root: Already marked as PCIe-only.\n> * pcie-pci-bridge: Already marked as PCIe-only.\n> * pcie-port: all non-abstract subtypes of pcie-port are already\n>   marked as PCIe-only devices.\n> \n> 3) megasas-base\n> \n> Not all megasas devices are Conventional PCI devices, so the\n> interface names are added to the subclasses registered by\n> megasas_register_types(), according to information in the\n> megasas_devices[] array.\n> \n> \"megasas-gen2\" already implements INTERFACE_PCIE_DEVICE, so add\n> INTERFACE_CONVENTIONAL_PCI_DEVICE only to \"megasas\".\n> \n> Acked-by: Alberto Garcia <berto@igalia.com>\n> Acked-by: John Snow <jsnow@redhat.com>\n> Acked-by: Anthony PERARD <anthony.perard@citrix.com>\n> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>\n\nReviewed-by: David Gibson <david@gibson.dropbear.id.au>\n\nand for the ppc devices\n\nAcked-by: David Gibson <david@gibson.dropbear.id.au>\n\n> ---\n> Changes v1 -> v2:\n> * s/legacy/conventional/\n>   * Suggested-by: Alex Williamson <alex.williamson@redhat.com>\n> * Note about pcie-pci-bridge on commit message.\n> * New devices: sungem, sunhme\n> \n> Cc: \"Michael S. Tsirkin\" <mst@redhat.com>\n> Cc: Igor Mammedov <imammedo@redhat.com>\n> Cc: Gerd Hoffmann <kraxel@redhat.com>\n> Cc: Paolo Bonzini <pbonzini@redhat.com>\n> Cc: Richard Henderson <rth@twiddle.net>\n> Cc: Eduardo Habkost <ehabkost@redhat.com>\n> Cc: Stefano Stabellini <sstabellini@kernel.org>\n> Cc: Anthony Perard <anthony.perard@citrix.com>\n> Cc: John Snow <jsnow@redhat.com>\n> Cc: Alberto Garcia <berto@igalia.com>\n> Cc: Aurelien Jarno <aurelien@aurel32.net>\n> Cc: Yongbok Kim <yongbok.kim@imgtec.com>\n> Cc: Jiri Slaby <jslaby@suse.cz>\n> Cc: Alexander Graf <agraf@suse.de>\n> Cc: Marcel Apfelbaum <marcel@redhat.com>\n> Cc: Jason Wang <jasowang@redhat.com>\n> Cc: Jiri Pirko <jiri@resnulli.us>\n> Cc: \"Hervé Poussineau\" <hpoussin@reactos.org>\n> Cc: Peter Maydell <peter.maydell@linaro.org>\n> Cc: David Gibson <david@gibson.dropbear.id.au>\n> Cc: Hannes Reinecke <hare@suse.com>\n> Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>\n> Cc: Artyom Tarasenko <atar4qemu@gmail.com>\n> Cc: Alex Williamson <alex.williamson@redhat.com>\n> Cc: qemu-devel@nongnu.org\n> Cc: xen-devel@lists.xenproject.org\n> Cc: qemu-block@nongnu.org\n> Cc: qemu-ppc@nongnu.org\n> Cc: qemu-arm@nongnu.org\n> ---\n>  hw/acpi/piix4.c                     |  1 +\n>  hw/audio/ac97.c                     |  4 ++++\n>  hw/audio/es1370.c                   |  4 ++++\n>  hw/audio/intel-hda.c                |  4 ++++\n>  hw/char/serial-pci.c                | 12 ++++++++++++\n>  hw/display/cirrus_vga.c             |  4 ++++\n>  hw/display/qxl.c                    |  4 ++++\n>  hw/display/sm501.c                  |  4 ++++\n>  hw/display/vga-pci.c                |  4 ++++\n>  hw/display/vmware_vga.c             |  4 ++++\n>  hw/i2c/smbus_ich9.c                 |  4 ++++\n>  hw/i386/amd_iommu.c                 |  4 ++++\n>  hw/i386/kvm/pci-assign.c            |  4 ++++\n>  hw/i386/pc_piix.c                   |  4 ++++\n>  hw/i386/xen/xen_platform.c          |  4 ++++\n>  hw/i386/xen/xen_pvdevice.c          |  4 ++++\n>  hw/ide/ich.c                        |  4 ++++\n>  hw/ide/pci.c                        |  4 ++++\n>  hw/ipack/tpci200.c                  |  4 ++++\n>  hw/isa/i82378.c                     |  4 ++++\n>  hw/isa/lpc_ich9.c                   |  1 +\n>  hw/isa/piix4.c                      |  4 ++++\n>  hw/isa/vt82c686.c                   | 16 ++++++++++++++++\n>  hw/mips/gt64xxx_pci.c               |  4 ++++\n>  hw/misc/edu.c                       |  5 +++++\n>  hw/misc/ivshmem.c                   |  4 ++++\n>  hw/misc/macio/macio.c               |  4 ++++\n>  hw/misc/pci-testdev.c               |  4 ++++\n>  hw/net/e1000.c                      |  4 ++++\n>  hw/net/eepro100.c                   |  4 ++++\n>  hw/net/ne2000.c                     |  4 ++++\n>  hw/net/pcnet-pci.c                  |  4 ++++\n>  hw/net/rocker/rocker.c              |  4 ++++\n>  hw/net/rtl8139.c                    |  4 ++++\n>  hw/net/sungem.c                     |  4 ++++\n>  hw/net/sunhme.c                     |  4 ++++\n>  hw/pci-bridge/dec.c                 |  8 ++++++++\n>  hw/pci-bridge/i82801b11.c           |  4 ++++\n>  hw/pci-bridge/pci_bridge_dev.c      |  1 +\n>  hw/pci-bridge/pci_expander_bridge.c |  8 ++++++++\n>  hw/pci-host/apb.c                   |  8 ++++++++\n>  hw/pci-host/bonito.c                |  4 ++++\n>  hw/pci-host/gpex.c                  |  4 ++++\n>  hw/pci-host/grackle.c               |  4 ++++\n>  hw/pci-host/piix.c                  |  8 ++++++++\n>  hw/pci-host/ppce500.c               |  4 ++++\n>  hw/pci-host/prep.c                  |  4 ++++\n>  hw/pci-host/q35.c                   |  4 ++++\n>  hw/pci-host/uninorth.c              | 16 ++++++++++++++++\n>  hw/pci-host/versatile.c             |  4 ++++\n>  hw/ppc/ppc4xx_pci.c                 |  4 ++++\n>  hw/scsi/esp-pci.c                   |  4 ++++\n>  hw/scsi/lsi53c895a.c                |  4 ++++\n>  hw/scsi/megasas.c                   |  4 ++++\n>  hw/scsi/mptsas.c                    |  4 ++++\n>  hw/sd/sdhci.c                       |  4 ++++\n>  hw/sh4/sh_pci.c                     |  4 ++++\n>  hw/sparc64/sun4u.c                  |  4 ++++\n>  hw/usb/hcd-ehci-pci.c               |  4 ++++\n>  hw/usb/hcd-ohci.c                   |  4 ++++\n>  hw/usb/hcd-uhci.c                   |  4 ++++\n>  hw/vfio/pci-quirks.c                |  4 ++++\n>  hw/watchdog/wdt_i6300esb.c          |  4 ++++\n>  hw/xen/xen_pt.c                     |  4 ++++\n>  64 files changed, 296 insertions(+)\n> \n> diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c\n> index f4fd5907b8..a0fb1ce037 100644\n> --- a/hw/acpi/piix4.c\n> +++ b/hw/acpi/piix4.c\n> @@ -718,6 +718,7 @@ static const TypeInfo piix4_pm_info = {\n>      .interfaces = (InterfaceInfo[]) {\n>          { TYPE_HOTPLUG_HANDLER },\n>          { TYPE_ACPI_DEVICE_IF },\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n>          { }\n>      }\n>  };\n> diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c\n> index 959c786261..337402e9c6 100644\n> --- a/hw/audio/ac97.c\n> +++ b/hw/audio/ac97.c\n> @@ -1431,6 +1431,10 @@ static const TypeInfo ac97_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof (AC97LinkState),\n>      .class_init    = ac97_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void ac97_register_types (void)\n> diff --git a/hw/audio/es1370.c b/hw/audio/es1370.c\n> index dd7c23d185..59cf252754 100644\n> --- a/hw/audio/es1370.c\n> +++ b/hw/audio/es1370.c\n> @@ -1082,6 +1082,10 @@ static const TypeInfo es1370_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof (ES1370State),\n>      .class_init    = es1370_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void es1370_register_types (void)\n> diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c\n> index 18a50a8f83..a3e670c188 100644\n> --- a/hw/audio/intel-hda.c\n> +++ b/hw/audio/intel-hda.c\n> @@ -1263,6 +1263,10 @@ static const TypeInfo intel_hda_info = {\n>      .instance_size = sizeof(IntelHDAState),\n>      .class_init    = intel_hda_class_init,\n>      .abstract      = true,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static const TypeInfo intel_hda_info_ich6 = {\n> diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c\n> index 303104dd19..cb0d04c1d9 100644\n> --- a/hw/char/serial-pci.c\n> +++ b/hw/char/serial-pci.c\n> @@ -250,6 +250,10 @@ static const TypeInfo serial_pci_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCISerialState),\n>      .class_init    = serial_pci_class_initfn,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static const TypeInfo multi_2x_serial_pci_info = {\n> @@ -257,6 +261,10 @@ static const TypeInfo multi_2x_serial_pci_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIMultiSerialState),\n>      .class_init    = multi_2x_serial_pci_class_initfn,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static const TypeInfo multi_4x_serial_pci_info = {\n> @@ -264,6 +272,10 @@ static const TypeInfo multi_4x_serial_pci_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIMultiSerialState),\n>      .class_init    = multi_4x_serial_pci_class_initfn,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void serial_pci_register_types(void)\n> diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c\n> index afc290ab91..b4d579857a 100644\n> --- a/hw/display/cirrus_vga.c\n> +++ b/hw/display/cirrus_vga.c\n> @@ -3162,6 +3162,10 @@ static const TypeInfo cirrus_vga_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCICirrusVGAState),\n>      .class_init    = cirrus_vga_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void cirrus_vga_register_types(void)\n> diff --git a/hw/display/qxl.c b/hw/display/qxl.c\n> index ae3677fd1e..b20e259122 100644\n> --- a/hw/display/qxl.c\n> +++ b/hw/display/qxl.c\n> @@ -2430,6 +2430,10 @@ static const TypeInfo qxl_pci_type_info = {\n>      .instance_size = sizeof(PCIQXLDevice),\n>      .abstract = true,\n>      .class_init = qxl_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void qxl_primary_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/display/sm501.c b/hw/display/sm501.c\n> index 9aa515b3da..6eddac911e 100644\n> --- a/hw/display/sm501.c\n> +++ b/hw/display/sm501.c\n> @@ -1843,6 +1843,10 @@ static const TypeInfo sm501_pci_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(SM501PCIState),\n>      .class_init    = sm501_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void sm501_register_types(void)\n> diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c\n> index ac9a76499e..7adb89fcb4 100644\n> --- a/hw/display/vga-pci.c\n> +++ b/hw/display/vga-pci.c\n> @@ -338,6 +338,10 @@ static const TypeInfo vga_pci_type_info = {\n>      .instance_size = sizeof(PCIVGAState),\n>      .abstract = true,\n>      .class_init = vga_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void vga_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c\n> index 4a64b41259..cdc3fed6ca 100644\n> --- a/hw/display/vmware_vga.c\n> +++ b/hw/display/vmware_vga.c\n> @@ -1350,6 +1350,10 @@ static const TypeInfo vmsvga_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(struct pci_vmsvga_state_s),\n>      .class_init    = vmsvga_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void vmsvga_register_types(void)\n> diff --git a/hw/i2c/smbus_ich9.c b/hw/i2c/smbus_ich9.c\n> index ea51e09186..e47556c9d8 100644\n> --- a/hw/i2c/smbus_ich9.c\n> +++ b/hw/i2c/smbus_ich9.c\n> @@ -119,6 +119,10 @@ static const TypeInfo ich9_smb_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(ICH9SMBState),\n>      .class_init = ich9_smb_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void ich9_smb_register(void)\n> diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c\n> index 334938a280..ad8155ca4c 100644\n> --- a/hw/i386/amd_iommu.c\n> +++ b/hw/i386/amd_iommu.c\n> @@ -1227,6 +1227,10 @@ static const TypeInfo amdviPCI = {\n>      .name = \"AMDVI-PCI\",\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(AMDVIPCIState),\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void amdvi_iommu_memory_region_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c\n> index 33e20cb3e8..d8559d8342 100644\n> --- a/hw/i386/kvm/pci-assign.c\n> +++ b/hw/i386/kvm/pci-assign.c\n> @@ -1864,6 +1864,10 @@ static const TypeInfo assign_info = {\n>      .instance_size      = sizeof(AssignedDevice),\n>      .class_init         = assign_class_init,\n>      .instance_init      = assigned_dev_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void assign_register_types(void)\n> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c\n> index 9ff79b1fd9..1a56465490 100644\n> --- a/hw/i386/pc_piix.c\n> +++ b/hw/i386/pc_piix.c\n> @@ -1055,6 +1055,10 @@ static TypeInfo isa_bridge_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init = isa_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void pt_graphics_register_types(void)\n> diff --git a/hw/i386/xen/xen_platform.c b/hw/i386/xen/xen_platform.c\n> index 9ba7474566..056b87de0b 100644\n> --- a/hw/i386/xen/xen_platform.c\n> +++ b/hw/i386/xen/xen_platform.c\n> @@ -517,6 +517,10 @@ static const TypeInfo xen_platform_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIXenPlatformState),\n>      .class_init    = xen_platform_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void xen_platform_register_types(void)\n> diff --git a/hw/i386/xen/xen_pvdevice.c b/hw/i386/xen/xen_pvdevice.c\n> index c093b34458..f748823658 100644\n> --- a/hw/i386/xen/xen_pvdevice.c\n> +++ b/hw/i386/xen/xen_pvdevice.c\n> @@ -127,6 +127,10 @@ static const TypeInfo xen_pv_type_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(XenPVDevice),\n>      .class_init    = xen_pv_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void xen_pv_register_types(void)\n> diff --git a/hw/ide/ich.c b/hw/ide/ich.c\n> index 9472a60cab..8dd0ced6b3 100644\n> --- a/hw/ide/ich.c\n> +++ b/hw/ide/ich.c\n> @@ -184,6 +184,10 @@ static const TypeInfo ich_ahci_info = {\n>      .instance_size = sizeof(AHCIPCIState),\n>      .instance_init = pci_ich9_ahci_init,\n>      .class_init    = ich_ahci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void ich_ahci_register_types(void)\n> diff --git a/hw/ide/pci.c b/hw/ide/pci.c\n> index f2dcc0ed77..053c0375c1 100644\n> --- a/hw/ide/pci.c\n> +++ b/hw/ide/pci.c\n> @@ -451,6 +451,10 @@ static const TypeInfo pci_ide_type_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIIDEState),\n>      .abstract = true,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void pci_ide_register_types(void)\n> diff --git a/hw/ipack/tpci200.c b/hw/ipack/tpci200.c\n> index 4dfa6b33f3..da05c8589d 100644\n> --- a/hw/ipack/tpci200.c\n> +++ b/hw/ipack/tpci200.c\n> @@ -646,6 +646,10 @@ static const TypeInfo tpci200_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(TPCI200State),\n>      .class_init    = tpci200_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void tpci200_register_types(void)\n> diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c\n> index 4d29a9900c..d20ea4c2ee 100644\n> --- a/hw/isa/i82378.c\n> +++ b/hw/isa/i82378.c\n> @@ -138,6 +138,10 @@ static const TypeInfo i82378_type_info = {\n>      .instance_size = sizeof(I82378State),\n>      .instance_init = i82378_init,\n>      .class_init = i82378_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void i82378_register_types(void)\n> diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c\n> index ac8416d42b..39f56ba44e 100644\n> --- a/hw/isa/lpc_ich9.c\n> +++ b/hw/isa/lpc_ich9.c\n> @@ -823,6 +823,7 @@ static const TypeInfo ich9_lpc_info = {\n>      .interfaces = (InterfaceInfo[]) {\n>          { TYPE_HOTPLUG_HANDLER },\n>          { TYPE_ACPI_DEVICE_IF },\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n>          { }\n>      }\n>  };\n> diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c\n> index f811eba59d..6b8bc3faf0 100644\n> --- a/hw/isa/piix4.c\n> +++ b/hw/isa/piix4.c\n> @@ -132,6 +132,10 @@ static const TypeInfo piix4_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PIIX4State),\n>      .class_init    = piix4_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void piix4_register_types(void)\n> diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c\n> index 50dc83df77..c129985e2a 100644\n> --- a/hw/isa/vt82c686.c\n> +++ b/hw/isa/vt82c686.c\n> @@ -301,6 +301,10 @@ static const TypeInfo via_ac97_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(VT686AC97State),\n>      .class_init    = via_ac97_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void vt82c686b_mc97_realize(PCIDevice *dev, Error **errp)\n> @@ -341,6 +345,10 @@ static const TypeInfo via_mc97_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(VT686MC97State),\n>      .class_init    = via_mc97_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  /* vt82c686 pm init */\n> @@ -419,6 +427,10 @@ static const TypeInfo via_pm_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(VT686PMState),\n>      .class_init    = via_pm_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static const VMStateDescription vmstate_via = {\n> @@ -502,6 +514,10 @@ static const TypeInfo via_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(VT82C686BState),\n>      .class_init    = via_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void vt82c686b_register_types(void)\n> diff --git a/hw/mips/gt64xxx_pci.c b/hw/mips/gt64xxx_pci.c\n> index e8b2eef688..5a9dad9aae 100644\n> --- a/hw/mips/gt64xxx_pci.c\n> +++ b/hw/mips/gt64xxx_pci.c\n> @@ -1232,6 +1232,10 @@ static const TypeInfo gt64120_pci_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init    = gt64120_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void gt64120_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/misc/edu.c b/hw/misc/edu.c\n> index 01acacf142..34eb05d213 100644\n> --- a/hw/misc/edu.c\n> +++ b/hw/misc/edu.c\n> @@ -408,12 +408,17 @@ static void edu_class_init(ObjectClass *class, void *data)\n>  \n>  static void pci_edu_register_types(void)\n>  {\n> +    static InterfaceInfo interfaces[] = {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    };\n>      static const TypeInfo edu_info = {\n>          .name          = \"edu\",\n>          .parent        = TYPE_PCI_DEVICE,\n>          .instance_size = sizeof(EduState),\n>          .instance_init = edu_instance_init,\n>          .class_init    = edu_class_init,\n> +        .interfaces = interfaces,\n>      };\n>  \n>      type_register_static(&edu_info);\n> diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c\n> index b3ef3ec1e3..a5a46827fe 100644\n> --- a/hw/misc/ivshmem.c\n> +++ b/hw/misc/ivshmem.c\n> @@ -1010,6 +1010,10 @@ static const TypeInfo ivshmem_common_info = {\n>      .instance_size = sizeof(IVShmemState),\n>      .abstract      = true,\n>      .class_init    = ivshmem_common_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static const VMStateDescription ivshmem_plain_vmsd = {\n> diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c\n> index 5d57f45dc6..298e65071c 100644\n> --- a/hw/misc/macio/macio.c\n> +++ b/hw/misc/macio/macio.c\n> @@ -415,6 +415,10 @@ static const TypeInfo macio_type_info = {\n>      .instance_init = macio_instance_init,\n>      .abstract      = true,\n>      .class_init    = macio_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void macio_register_types(void)\n> diff --git a/hw/misc/pci-testdev.c b/hw/misc/pci-testdev.c\n> index 7d5990213e..32041f535f 100644\n> --- a/hw/misc/pci-testdev.c\n> +++ b/hw/misc/pci-testdev.c\n> @@ -326,6 +326,10 @@ static const TypeInfo pci_testdev_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCITestDevState),\n>      .class_init    = pci_testdev_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void pci_testdev_register_types(void)\n> diff --git a/hw/net/e1000.c b/hw/net/e1000.c\n> index eebe3a9c13..acdb935af5 100644\n> --- a/hw/net/e1000.c\n> +++ b/hw/net/e1000.c\n> @@ -1685,6 +1685,10 @@ static const TypeInfo e1000_base_info = {\n>      .instance_init = e1000_instance_init,\n>      .class_size    = sizeof(E1000BaseClass),\n>      .abstract      = true,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static const E1000Info e1000_devices[] = {\n> diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c\n> index a7b9f77519..80b8f47c4b 100644\n> --- a/hw/net/eepro100.c\n> +++ b/hw/net/eepro100.c\n> @@ -2116,6 +2116,10 @@ static void eepro100_register_types(void)\n>          type_info.class_init = eepro100_class_init;\n>          type_info.instance_size = sizeof(EEPRO100State);\n>          type_info.instance_init = eepro100_instance_init;\n> +        type_info.interfaces = (InterfaceInfo[]) {\n> +            { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +            { },\n> +        };\n>  \n>          type_register(&type_info);\n>      }\n> diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c\n> index 798d681e25..3938e6ddd8 100644\n> --- a/hw/net/ne2000.c\n> +++ b/hw/net/ne2000.c\n> @@ -786,6 +786,10 @@ static const TypeInfo ne2000_info = {\n>      .instance_size = sizeof(PCINE2000State),\n>      .class_init    = ne2000_class_init,\n>      .instance_init = ne2000_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void ne2000_register_types(void)\n> diff --git a/hw/net/pcnet-pci.c b/hw/net/pcnet-pci.c\n> index 0acf8a4879..0ae5ca4701 100644\n> --- a/hw/net/pcnet-pci.c\n> +++ b/hw/net/pcnet-pci.c\n> @@ -365,6 +365,10 @@ static const TypeInfo pcnet_info = {\n>      .instance_size = sizeof(PCIPCNetState),\n>      .class_init    = pcnet_class_init,\n>      .instance_init = pcnet_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void pci_pcnet_register_types(void)\n> diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c\n> index 9273473d59..823a29df03 100644\n> --- a/hw/net/rocker/rocker.c\n> +++ b/hw/net/rocker/rocker.c\n> @@ -1525,6 +1525,10 @@ static const TypeInfo rocker_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(Rocker),\n>      .class_init    = rocker_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void rocker_register_types(void)\n> diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c\n> index 3be24bbee7..bef0464b2e 100644\n> --- a/hw/net/rtl8139.c\n> +++ b/hw/net/rtl8139.c\n> @@ -3442,6 +3442,10 @@ static const TypeInfo rtl8139_info = {\n>      .instance_size = sizeof(RTL8139State),\n>      .class_init    = rtl8139_class_init,\n>      .instance_init = rtl8139_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void rtl8139_register_types(void)\n> diff --git a/hw/net/sungem.c b/hw/net/sungem.c\n> index dffa0c90f3..6aa8d1117b 100644\n> --- a/hw/net/sungem.c\n> +++ b/hw/net/sungem.c\n> @@ -1437,6 +1437,10 @@ static const TypeInfo sungem_info = {\n>      .instance_size = sizeof(SunGEMState),\n>      .class_init    = sungem_class_init,\n>      .instance_init = sungem_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { }\n> +    }\n>  };\n>  \n>  static void sungem_register_types(void)\n> diff --git a/hw/net/sunhme.c b/hw/net/sunhme.c\n> index 60277adcf1..b1efa1b88d 100644\n> --- a/hw/net/sunhme.c\n> +++ b/hw/net/sunhme.c\n> @@ -968,6 +968,10 @@ static const TypeInfo sunhme_info = {\n>      .class_init    = sunhme_class_init,\n>      .instance_size = sizeof(SunHMEState),\n>      .instance_init = sunhme_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { }\n> +    }\n>  };\n>  \n>  static void sunhme_register_types(void)\n> diff --git a/hw/pci-bridge/dec.c b/hw/pci-bridge/dec.c\n> index eb275e1a25..84492d5e5f 100644\n> --- a/hw/pci-bridge/dec.c\n> +++ b/hw/pci-bridge/dec.c\n> @@ -79,6 +79,10 @@ static const TypeInfo dec_21154_pci_bridge_info = {\n>      .parent        = TYPE_PCI_BRIDGE,\n>      .instance_size = sizeof(PCIBridge),\n>      .class_init    = dec_21154_pci_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  PCIBus *pci_dec_21154_init(PCIBus *parent_bus, int devfn)\n> @@ -138,6 +142,10 @@ static const TypeInfo dec_21154_pci_host_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init    = dec_21154_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void pci_dec_21154_device_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/pci-bridge/i82801b11.c b/hw/pci-bridge/i82801b11.c\n> index 2c1b747b4b..cb522bf30c 100644\n> --- a/hw/pci-bridge/i82801b11.c\n> +++ b/hw/pci-bridge/i82801b11.c\n> @@ -106,6 +106,10 @@ static const TypeInfo i82801b11_bridge_info = {\n>      .parent        = TYPE_PCI_BRIDGE,\n>      .instance_size = sizeof(I82801b11Bridge),\n>      .class_init    = i82801b11_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void d2pbr_register(void)\n> diff --git a/hw/pci-bridge/pci_bridge_dev.c b/hw/pci-bridge/pci_bridge_dev.c\n> index 4373f1d3e2..d56f6638c2 100644\n> --- a/hw/pci-bridge/pci_bridge_dev.c\n> +++ b/hw/pci-bridge/pci_bridge_dev.c\n> @@ -238,6 +238,7 @@ static const TypeInfo pci_bridge_dev_info = {\n>      .instance_finalize = pci_bridge_dev_instance_finalize,\n>      .interfaces = (InterfaceInfo[]) {\n>          { TYPE_HOTPLUG_HANDLER },\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n>          { }\n>      }\n>  };\n> diff --git a/hw/pci-bridge/pci_expander_bridge.c b/hw/pci-bridge/pci_expander_bridge.c\n> index ff59abf208..8c8ac737ad 100644\n> --- a/hw/pci-bridge/pci_expander_bridge.c\n> +++ b/hw/pci-bridge/pci_expander_bridge.c\n> @@ -316,6 +316,10 @@ static const TypeInfo pxb_dev_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PXBDev),\n>      .class_init    = pxb_dev_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void pxb_pcie_dev_realize(PCIDevice *dev, Error **errp)\n> @@ -350,6 +354,10 @@ static const TypeInfo pxb_pcie_dev_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PXBDev),\n>      .class_init    = pxb_pcie_dev_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void pxb_register_types(void)\n> diff --git a/hw/pci-host/apb.c b/hw/pci-host/apb.c\n> index b709456b97..1edf57f600 100644\n> --- a/hw/pci-host/apb.c\n> +++ b/hw/pci-host/apb.c\n> @@ -836,6 +836,10 @@ static const TypeInfo pbm_pci_host_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init    = pbm_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void pbm_host_class_init(ObjectClass *klass, void *data)\n> @@ -883,6 +887,10 @@ static const TypeInfo pbm_pci_bridge_info = {\n>      .parent        = TYPE_PCI_BRIDGE,\n>      .class_init    = pbm_pci_bridge_class_init,\n>      .instance_size = sizeof(PBMPCIBridge),\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void pbm_iommu_memory_region_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c\n> index 89133a9dd3..9f61e27edc 100644\n> --- a/hw/pci-host/bonito.c\n> +++ b/hw/pci-host/bonito.c\n> @@ -833,6 +833,10 @@ static const TypeInfo bonito_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIBonitoState),\n>      .class_init    = bonito_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void bonito_pcihost_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/pci-host/gpex.c b/hw/pci-host/gpex.c\n> index be25245219..4090793cf0 100644\n> --- a/hw/pci-host/gpex.c\n> +++ b/hw/pci-host/gpex.c\n> @@ -166,6 +166,10 @@ static const TypeInfo gpex_root_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(GPEXRootState),\n>      .class_init = gpex_root_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void gpex_register(void)\n> diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c\n> index 2e281f6155..38cd279b6b 100644\n> --- a/hw/pci-host/grackle.c\n> +++ b/hw/pci-host/grackle.c\n> @@ -142,6 +142,10 @@ static const TypeInfo grackle_pci_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init = grackle_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void pci_grackle_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c\n> index 894e131c00..2b8d90a853 100644\n> --- a/hw/pci-host/piix.c\n> +++ b/hw/pci-host/piix.c\n> @@ -694,6 +694,10 @@ static const TypeInfo piix3_pci_type_info = {\n>      .instance_size = sizeof(PIIX3State),\n>      .abstract = true,\n>      .class_init = pci_piix3_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void piix3_class_init(ObjectClass *klass, void *data)\n> @@ -748,6 +752,10 @@ static const TypeInfo i440fx_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCII440FXState),\n>      .class_init    = i440fx_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  /* IGD Passthrough Host Bridge. */\n> diff --git a/hw/pci-host/ppce500.c b/hw/pci-host/ppce500.c\n> index becc0eeb76..39cd24464d 100644\n> --- a/hw/pci-host/ppce500.c\n> +++ b/hw/pci-host/ppce500.c\n> @@ -516,6 +516,10 @@ static const TypeInfo e500_host_bridge_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PPCE500PCIBridgeState),\n>      .class_init    = e500_host_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static Property pcihost_properties[] = {\n> diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c\n> index 8b293ba0f1..92eed0f3e1 100644\n> --- a/hw/pci-host/prep.c\n> +++ b/hw/pci-host/prep.c\n> @@ -372,6 +372,10 @@ static const TypeInfo raven_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(RavenPCIState),\n>      .class_init = raven_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static Property raven_pcihost_properties[] = {\n> diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c\n> index 1ff648e80c..ddaa7d1b44 100644\n> --- a/hw/pci-host/q35.c\n> +++ b/hw/pci-host/q35.c\n> @@ -591,6 +591,10 @@ static const TypeInfo mch_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(MCHPCIState),\n>      .class_init = mch_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void q35_register(void)\n> diff --git a/hw/pci-host/uninorth.c b/hw/pci-host/uninorth.c\n> index 6cf5e59f86..ea5c265718 100644\n> --- a/hw/pci-host/uninorth.c\n> +++ b/hw/pci-host/uninorth.c\n> @@ -374,6 +374,10 @@ static const TypeInfo unin_main_pci_host_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init = unin_main_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void u3_agp_pci_host_class_init(ObjectClass *klass, void *data)\n> @@ -398,6 +402,10 @@ static const TypeInfo u3_agp_pci_host_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init = u3_agp_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void unin_agp_pci_host_class_init(ObjectClass *klass, void *data)\n> @@ -422,6 +430,10 @@ static const TypeInfo unin_agp_pci_host_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init = unin_agp_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void unin_internal_pci_host_class_init(ObjectClass *klass, void *data)\n> @@ -446,6 +458,10 @@ static const TypeInfo unin_internal_pci_host_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init = unin_internal_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void pci_unin_main_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c\n> index aa1fdf75fd..6394a520fc 100644\n> --- a/hw/pci-host/versatile.c\n> +++ b/hw/pci-host/versatile.c\n> @@ -487,6 +487,10 @@ static const TypeInfo versatile_pci_host_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init    = versatile_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static Property pci_vpb_properties[] = {\n> diff --git a/hw/ppc/ppc4xx_pci.c b/hw/ppc/ppc4xx_pci.c\n> index 6953f8b9ac..4765dcecca 100644\n> --- a/hw/ppc/ppc4xx_pci.c\n> +++ b/hw/ppc/ppc4xx_pci.c\n> @@ -359,6 +359,10 @@ static const TypeInfo ppc4xx_host_bridge_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init    = ppc4xx_host_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void ppc4xx_pcihost_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c\n> index e295d88939..419fc668ac 100644\n> --- a/hw/scsi/esp-pci.c\n> +++ b/hw/scsi/esp-pci.c\n> @@ -398,6 +398,10 @@ static const TypeInfo esp_pci_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIESPState),\n>      .class_init = esp_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  typedef struct {\n> diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c\n> index 3e56ab267c..423a2848ea 100644\n> --- a/hw/scsi/lsi53c895a.c\n> +++ b/hw/scsi/lsi53c895a.c\n> @@ -2244,6 +2244,10 @@ static const TypeInfo lsi_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(LSIState),\n>      .class_init    = lsi_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void lsi53c810_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c\n> index 535ee267c3..d5eae6239a 100644\n> --- a/hw/scsi/megasas.c\n> +++ b/hw/scsi/megasas.c\n> @@ -2468,6 +2468,10 @@ static struct MegasasInfo megasas_devices[] = {\n>          .is_express = false,\n>          .vmsd = &vmstate_megasas_gen1,\n>          .props = megasas_properties_gen1,\n> +        .interfaces = (InterfaceInfo[]) {\n> +            { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +            { },\n> +        },\n>      },{\n>          .name = TYPE_MEGASAS_GEN2,\n>          .desc = \"LSI MegaRAID SAS 2108\",\n> diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c\n> index d05fa9f549..f6db1b0103 100644\n> --- a/hw/scsi/mptsas.c\n> +++ b/hw/scsi/mptsas.c\n> @@ -1439,6 +1439,10 @@ static const TypeInfo mptsas_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(MPTSASState),\n>      .class_init = mptsas1068_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void mptsas_register_types(void)\n> diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c\n> index 6d6a791ee9..b064a087c9 100644\n> --- a/hw/sd/sdhci.c\n> +++ b/hw/sd/sdhci.c\n> @@ -1315,6 +1315,10 @@ static const TypeInfo sdhci_pci_info = {\n>      .parent = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(SDHCIState),\n>      .class_init = sdhci_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static Property sdhci_sysbus_properties[] = {\n> diff --git a/hw/sh4/sh_pci.c b/hw/sh4/sh_pci.c\n> index 38395c082b..cbb01af57f 100644\n> --- a/hw/sh4/sh_pci.c\n> +++ b/hw/sh4/sh_pci.c\n> @@ -179,6 +179,10 @@ static const TypeInfo sh_pci_host_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(PCIDevice),\n>      .class_init    = sh_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void sh_pci_device_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c\n> index c3280aaf38..8282651aeb 100644\n> --- a/hw/sparc64/sun4u.c\n> +++ b/hw/sparc64/sun4u.c\n> @@ -275,6 +275,10 @@ static const TypeInfo ebus_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(EbusState),\n>      .class_init    = ebus_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  #define TYPE_OPENPROM \"openprom\"\n> diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c\n> index 6dedcb8989..8c0fc53a26 100644\n> --- a/hw/usb/hcd-ehci-pci.c\n> +++ b/hw/usb/hcd-ehci-pci.c\n> @@ -170,6 +170,10 @@ static const TypeInfo ehci_pci_type_info = {\n>      .instance_finalize = usb_ehci_pci_finalize,\n>      .abstract = true,\n>      .class_init = ehci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void ehci_data_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c\n> index 267982e160..a31df67daa 100644\n> --- a/hw/usb/hcd-ohci.c\n> +++ b/hw/usb/hcd-ohci.c\n> @@ -2139,6 +2139,10 @@ static const TypeInfo ohci_pci_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(OHCIPCIState),\n>      .class_init    = ohci_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static Property ohci_sysbus_properties[] = {\n> diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c\n> index e3562a4c60..836b11f177 100644\n> --- a/hw/usb/hcd-uhci.c\n> +++ b/hw/usb/hcd-uhci.c\n> @@ -1323,6 +1323,10 @@ static const TypeInfo uhci_pci_type_info = {\n>      .class_size    = sizeof(UHCIPCIDeviceClass),\n>      .abstract = true,\n>      .class_init = uhci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void uhci_data_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/vfio/pci-quirks.c b/hw/vfio/pci-quirks.c\n> index 349085ea12..2bd9d126d1 100644\n> --- a/hw/vfio/pci-quirks.c\n> +++ b/hw/vfio/pci-quirks.c\n> @@ -1197,6 +1197,10 @@ static TypeInfo vfio_pci_igd_lpc_bridge_info = {\n>      .name = \"vfio-pci-igd-lpc-bridge\",\n>      .parent = TYPE_PCI_DEVICE,\n>      .class_init = vfio_pci_igd_lpc_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void vfio_pci_igd_register_types(void)\n> diff --git a/hw/watchdog/wdt_i6300esb.c b/hw/watchdog/wdt_i6300esb.c\n> index 49b3cd188a..e596b0804d 100644\n> --- a/hw/watchdog/wdt_i6300esb.c\n> +++ b/hw/watchdog/wdt_i6300esb.c\n> @@ -463,6 +463,10 @@ static const TypeInfo i6300esb_info = {\n>      .parent        = TYPE_PCI_DEVICE,\n>      .instance_size = sizeof(I6300State),\n>      .class_init    = i6300esb_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void i6300esb_register_types(void)\n> diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c\n> index 375efa68f6..01df3414d3 100644\n> --- a/hw/xen/xen_pt.c\n> +++ b/hw/xen/xen_pt.c\n> @@ -964,6 +964,10 @@ static const TypeInfo xen_pci_passthrough_info = {\n>      .instance_size = sizeof(XenPCIPassthroughState),\n>      .instance_finalize = xen_pci_passthrough_finalize,\n>      .class_init = xen_pci_passthrough_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n>  \n>  static void xen_pci_passthrough_register_types(void)","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=gibson.dropbear.id.au\n\theader.i=@gibson.dropbear.id.au header.b=\"dUk35sK+\"; \n\tdkim-atps=neutral"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y2hGC21SWz9tXb\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 28 Sep 2017 14:16:35 +1000 (AEST)","from localhost ([::1]:57294 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dxQFV-0002aH-BE\n\tfor incoming@patchwork.ozlabs.org; Thu, 28 Sep 2017 00:16:33 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:54141)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <dgibson@ozlabs.org>) id 1dxQCr-0000rk-Tu\n\tfor qemu-devel@nongnu.org; Thu, 28 Sep 2017 00:13:55 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <dgibson@ozlabs.org>) id 1dxQCm-0003cF-T3\n\tfor qemu-devel@nongnu.org; Thu, 28 Sep 2017 00:13:49 -0400","from ozlabs.org ([103.22.144.67]:35123)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <dgibson@ozlabs.org>)\n\tid 1dxQCU-0003VS-C4; Thu, 28 Sep 2017 00:13:27 -0400","by ozlabs.org (Postfix, from userid 1007)\n\tid 3y2hBN56lQz9tXt; Thu, 28 Sep 2017 14:13:16 +1000 (AEST)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple;\n\td=gibson.dropbear.id.au; s=201602; t=1506571996;\n\tbh=h+LARk7x0zmdFiRbP8borvYssQN1yC8ajW58NfeOFOg=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=dUk35sK+csWwaomWZPlY7GUmwukCy2b1rCkGSuTnOMH35OTwuTZwdCE36vxbfrFkc\n\tsbIHJFUtjtqvcuUrFQcn/fZ5Pk5om7kTAJRGbQ3ZZVfW9W86uhsNUV/t+rISsWl/RD\n\tNvwO32INDXgN4GAjCiHpzRSJfPchlFV6MC7h9PV4=","Date":"Thu, 28 Sep 2017 14:12:39 +1000","From":"David Gibson <david@gibson.dropbear.id.au>","To":"Eduardo Habkost <ehabkost@redhat.com>","Message-ID":"<20170928041239.GC12504@umbus>","References":"<20170927195635.16014-1-ehabkost@redhat.com>\n\t<20170927195635.16014-5-ehabkost@redhat.com>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha256;\n\tprotocol=\"application/pgp-signature\"; boundary=\"Lvl7PYhWQWN8QmIZ\"","Content-Disposition":"inline","In-Reply-To":"<20170927195635.16014-5-ehabkost@redhat.com>","User-Agent":"Mutt/1.9.0 (2017-09-02)","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"103.22.144.67","Subject":"Re: [Qemu-devel] [PATCH v2 4/5] pci: Add\n\tINTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, \"Michael S. Tsirkin\"\n\t<mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Mark Cave-Ayland\n\t<mark.cave-ayland@ilande.co.uk>, qemu-devel@nongnu.org,\n\tGerd Hoffmann <kraxel@redhat.com>, David Gibson <dgibson@redhat.com>,\n\tJiri Slaby <jslaby@suse.cz>, \tHannes Reinecke <hare@suse.com>,\n\tStefano Stabellini <sstabellini@kernel.org>, \n\tAlberto Garcia <berto@igalia.com>, qemu-block@nongnu.org, \n\tAlexander Graf <agraf@suse.de>, =?iso-8859-1?q?Herv=E9?=\n\tPoussineau <hpoussin@reactos.org>, Anthony Perard\n\t<anthony.perard@citrix.com>, xen-devel@lists.xenproject.org, Artyom\n\tTarasenko <atar4qemu@gmail.com>, Jiri Pirko <jiri@resnulli.us>,\n\tMarcel Apfelbaum <marcel@redhat.com>, Alex Williamson\n\t<alex.williamson@redhat.com>, qemu-arm@nongnu.org,\n\tLaine Stump <laine@redhat.com>, Igor Mammedov <imammedo@redhat.com>,\n\tYongbok Kim <yongbok.kim@imgtec.com>, Alistair Francis\n\t<alistair23@gmail.com>, John Snow <jsnow@redhat.com>, Richard Henderson\n\t<rth@twiddle.net>, qemu-ppc@nongnu.org, Paolo Bonzini\n\t<pbonzini@redhat.com>, Aurelien Jarno <aurelien@aurel32.net>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1776863,"web_url":"http://patchwork.ozlabs.org/comment/1776863/","msgid":"<59CCD0150200007800180507@prv-mh.provo.novell.com>","list_archive_url":null,"date":"2017-09-28T08:33:57","subject":"Re: [Qemu-devel] [Xen-devel] [PATCH v2 4/5] pci: Add\n\tINTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices","submitter":{"id":9477,"url":"http://patchwork.ozlabs.org/api/people/9477/","name":"Jan Beulich","email":"JBeulich@suse.com"},"content":">>> On 27.09.17 at 21:56, <ehabkost@redhat.com> wrote:\n> --- a/hw/xen/xen_pt.c\n> +++ b/hw/xen/xen_pt.c\n> @@ -964,6 +964,10 @@ static const TypeInfo xen_pci_passthrough_info = {\n>      .instance_size = sizeof(XenPCIPassthroughState),\n>      .instance_finalize = xen_pci_passthrough_finalize,\n>      .class_init = xen_pci_passthrough_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>  };\n\nPassed through devices can be both PCI and PCIe, so following\nthe description of the patch I don't think these can be statically\ngiven either property. Granted quite a bit of PCIe specific\nfunctionality may be missing in the Xen code ...\n\nJan","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","Received":["from lists.gnu.org (unknown [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y2p071kSzz9rxl\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 28 Sep 2017 18:34:45 +1000 (AEST)","from localhost ([::1]:57964 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dxUHB-0003Kb-B2\n\tfor incoming@patchwork.ozlabs.org; Thu, 28 Sep 2017 04:34:33 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:50186)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <JBeulich@suse.com>) id 1dxUGp-0003KD-3I\n\tfor qemu-devel@nongnu.org; Thu, 28 Sep 2017 04:34:11 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <JBeulich@suse.com>) id 1dxUGo-0008JV-CH\n\tfor qemu-devel@nongnu.org; Thu, 28 Sep 2017 04:34:11 -0400","from prv-mh.provo.novell.com ([137.65.248.74]:40782)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <JBeulich@suse.com>)\n\tid 1dxUGh-0008GB-EE; Thu, 28 Sep 2017 04:34:03 -0400","from INET-PRV-MTA by prv-mh.provo.novell.com\n\twith Novell_GroupWise; Thu, 28 Sep 2017 02:34:00 -0600"],"Message-Id":"<59CCD0150200007800180507@prv-mh.provo.novell.com>","X-Mailer":"Novell GroupWise Internet Agent 14.2.2 ","Date":"Thu, 28 Sep 2017 02:33:57 -0600","From":"\"Jan Beulich\" <JBeulich@suse.com>","To":"\"Eduardo Habkost\" <ehabkost@redhat.com>","References":"<20170927195635.16014-1-ehabkost@redhat.com>\n\t<20170927195635.16014-5-ehabkost@redhat.com>","In-Reply-To":"<20170927195635.16014-5-ehabkost@redhat.com>","Mime-Version":"1.0","Content-Type":"text/plain; charset=US-ASCII","Content-Transfer-Encoding":"quoted-printable","Content-Disposition":"inline","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 3.x [fuzzy]","X-Received-From":"137.65.248.74","Subject":"Re: [Qemu-devel] [Xen-devel] [PATCH v2 4/5] pci: Add\n\tINTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, \"Michael S. Tsirkin\"\n\t<mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Mark Cave-Ayland\n\t<mark.cave-ayland@ilande.co.uk>, qemu-devel@nongnu.org,\n\tGerd Hoffmann <kraxel@redhat.com>, David Gibson <dgibson@redhat.com>,\n\tJiri Slaby <jslaby@suse.cz>, \tHannes Reinecke <hare@suse.com>,\n\tStefano Stabellini <sstabellini@kernel.org>, \n\tAlberto Garcia <berto@igalia.com>, qemu-block@nongnu.org, \n\tAlexander Graf <agraf@suse.de>, =?utf-8?q?Herv=C3=A9_Poussineau?=\n\t<hpoussin@reactos.org>, Anthony Perard <anthony.perard@citrix.com>,\n\txen-devel@lists.xenproject.org, \tRichard Henderson <rth@twiddle.net>,\n\tArtyom Tarasenko <atar4qemu@gmail.com>, Jiri Pirko <jiri@resnulli.us>, \n\tMarcel Apfelbaum <marcel@redhat.com>, \n\tAlex Williamson <alex.williamson@redhat.com>, qemu-arm@nongnu.org,\n\tLaine Stump <laine@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,\n\tYongbok Kim <yongbok.kim@imgtec.com>, Alistair Francis\n\t<alistair23@gmail.com>, John Snow <jsnow@redhat.com>, David Gibson\n\t<david@gibson.dropbear.id.au>, qemu-ppc@nongnu.org, Igor Mammedov\n\t<imammedo@redhat.com>, Aurelien Jarno <aurelien@aurel32.net>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1776915,"web_url":"http://patchwork.ozlabs.org/comment/1776915/","msgid":"<47c39aff-8d94-886b-2ce0-9af08541976f@redhat.com>","list_archive_url":null,"date":"2017-09-28T09:35:35","subject":"Re: [Qemu-devel] [PATCH v2 4/5] pci: Add\n\tINTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices","submitter":{"id":65362,"url":"http://patchwork.ozlabs.org/api/people/65362/","name":"Marcel Apfelbaum","email":"marcel@redhat.com"},"content":"On 27/09/2017 22:56, Eduardo Habkost wrote:\n> Add INTERFACE_CONVENTIONAL_PCI_DEVICE to all direct subtypes of\n> TYPE_PCI_DEVICE, except:\n> \n> 1) The ones that already have INTERFACE_PCIE_DEVICE set:\n> \n> * base-xhci\n> * e1000e\n> * nvme\n> * pvscsi\n> * vfio-pci\n> * virtio-pci\n> * vmxnet3\n> \n> 2) base-pci-bridge\n> \n> Not all PCI bridges are Conventional PCI devices, so\n> INTERFACE_CONVENTIONAL_PCI_DEVICE is added only to the subtypes\n> that are actually Conventional PCI:\n> \n> * dec-21154-p2p-bridge\n> * i82801b11-bridge\n> * pbm-bridge\n> * pci-bridge\n> \n> The direct subtypes of base-pci-bridge not touched by this patch\n> are:\n> \n> * xilinx-pcie-root: Already marked as PCIe-only.\n> * pcie-pci-bridge: Already marked as PCIe-only.\n> * pcie-port: all non-abstract subtypes of pcie-port are already\n>    marked as PCIe-only devices.\n> \n> 3) megasas-base\n> \n> Not all megasas devices are Conventional PCI devices, so the\n> interface names are added to the subclasses registered by\n> megasas_register_types(), according to information in the\n> megasas_devices[] array.\n> \n> \"megasas-gen2\" already implements INTERFACE_PCIE_DEVICE, so add\n> INTERFACE_CONVENTIONAL_PCI_DEVICE only to \"megasas\".\n> \n> Acked-by: Alberto Garcia <berto@igalia.com>\n> Acked-by: John Snow <jsnow@redhat.com>\n> Acked-by: Anthony PERARD <anthony.perard@citrix.com>\n> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>\n> ---\n> Changes v1 -> v2:\n> * s/legacy/conventional/\n>    * Suggested-by: Alex Williamson <alex.williamson@redhat.com>\n> * Note about pcie-pci-bridge on commit message.\n> * New devices: sungem, sunhme\n> \n> Cc: \"Michael S. Tsirkin\" <mst@redhat.com>\n> Cc: Igor Mammedov <imammedo@redhat.com>\n> Cc: Gerd Hoffmann <kraxel@redhat.com>\n> Cc: Paolo Bonzini <pbonzini@redhat.com>\n> Cc: Richard Henderson <rth@twiddle.net>\n> Cc: Eduardo Habkost <ehabkost@redhat.com>\n> Cc: Stefano Stabellini <sstabellini@kernel.org>\n> Cc: Anthony Perard <anthony.perard@citrix.com>\n> Cc: John Snow <jsnow@redhat.com>\n> Cc: Alberto Garcia <berto@igalia.com>\n> Cc: Aurelien Jarno <aurelien@aurel32.net>\n> Cc: Yongbok Kim <yongbok.kim@imgtec.com>\n> Cc: Jiri Slaby <jslaby@suse.cz>\n> Cc: Alexander Graf <agraf@suse.de>\n> Cc: Marcel Apfelbaum <marcel@redhat.com>\n> Cc: Jason Wang <jasowang@redhat.com>\n> Cc: Jiri Pirko <jiri@resnulli.us>\n> Cc: \"Hervé Poussineau\" <hpoussin@reactos.org>\n> Cc: Peter Maydell <peter.maydell@linaro.org>\n> Cc: David Gibson <david@gibson.dropbear.id.au>\n> Cc: Hannes Reinecke <hare@suse.com>\n> Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>\n> Cc: Artyom Tarasenko <atar4qemu@gmail.com>\n> Cc: Alex Williamson <alex.williamson@redhat.com>\n> Cc: qemu-devel@nongnu.org\n> Cc: xen-devel@lists.xenproject.org\n> Cc: qemu-block@nongnu.org\n> Cc: qemu-ppc@nongnu.org\n> Cc: qemu-arm@nongnu.org\n> ---\n>   hw/acpi/piix4.c                     |  1 +\n>   hw/audio/ac97.c                     |  4 ++++\n>   hw/audio/es1370.c                   |  4 ++++\n>   hw/audio/intel-hda.c                |  4 ++++\n>   hw/char/serial-pci.c                | 12 ++++++++++++\n>   hw/display/cirrus_vga.c             |  4 ++++\n>   hw/display/qxl.c                    |  4 ++++\n>   hw/display/sm501.c                  |  4 ++++\n>   hw/display/vga-pci.c                |  4 ++++\n>   hw/display/vmware_vga.c             |  4 ++++\n>   hw/i2c/smbus_ich9.c                 |  4 ++++\n>   hw/i386/amd_iommu.c                 |  4 ++++\n>   hw/i386/kvm/pci-assign.c            |  4 ++++\n>   hw/i386/pc_piix.c                   |  4 ++++\n>   hw/i386/xen/xen_platform.c          |  4 ++++\n>   hw/i386/xen/xen_pvdevice.c          |  4 ++++\n>   hw/ide/ich.c                        |  4 ++++\n>   hw/ide/pci.c                        |  4 ++++\n>   hw/ipack/tpci200.c                  |  4 ++++\n>   hw/isa/i82378.c                     |  4 ++++\n>   hw/isa/lpc_ich9.c                   |  1 +\n>   hw/isa/piix4.c                      |  4 ++++\n>   hw/isa/vt82c686.c                   | 16 ++++++++++++++++\n>   hw/mips/gt64xxx_pci.c               |  4 ++++\n>   hw/misc/edu.c                       |  5 +++++\n>   hw/misc/ivshmem.c                   |  4 ++++\n>   hw/misc/macio/macio.c               |  4 ++++\n>   hw/misc/pci-testdev.c               |  4 ++++\n>   hw/net/e1000.c                      |  4 ++++\n>   hw/net/eepro100.c                   |  4 ++++\n>   hw/net/ne2000.c                     |  4 ++++\n>   hw/net/pcnet-pci.c                  |  4 ++++\n>   hw/net/rocker/rocker.c              |  4 ++++\n>   hw/net/rtl8139.c                    |  4 ++++\n>   hw/net/sungem.c                     |  4 ++++\n>   hw/net/sunhme.c                     |  4 ++++\n>   hw/pci-bridge/dec.c                 |  8 ++++++++\n>   hw/pci-bridge/i82801b11.c           |  4 ++++\n>   hw/pci-bridge/pci_bridge_dev.c      |  1 +\n>   hw/pci-bridge/pci_expander_bridge.c |  8 ++++++++\n>   hw/pci-host/apb.c                   |  8 ++++++++\n>   hw/pci-host/bonito.c                |  4 ++++\n>   hw/pci-host/gpex.c                  |  4 ++++\n>   hw/pci-host/grackle.c               |  4 ++++\n>   hw/pci-host/piix.c                  |  8 ++++++++\n>   hw/pci-host/ppce500.c               |  4 ++++\n>   hw/pci-host/prep.c                  |  4 ++++\n>   hw/pci-host/q35.c                   |  4 ++++\n>   hw/pci-host/uninorth.c              | 16 ++++++++++++++++\n>   hw/pci-host/versatile.c             |  4 ++++\n>   hw/ppc/ppc4xx_pci.c                 |  4 ++++\n>   hw/scsi/esp-pci.c                   |  4 ++++\n>   hw/scsi/lsi53c895a.c                |  4 ++++\n>   hw/scsi/megasas.c                   |  4 ++++\n>   hw/scsi/mptsas.c                    |  4 ++++\n>   hw/sd/sdhci.c                       |  4 ++++\n>   hw/sh4/sh_pci.c                     |  4 ++++\n>   hw/sparc64/sun4u.c                  |  4 ++++\n>   hw/usb/hcd-ehci-pci.c               |  4 ++++\n>   hw/usb/hcd-ohci.c                   |  4 ++++\n>   hw/usb/hcd-uhci.c                   |  4 ++++\n>   hw/vfio/pci-quirks.c                |  4 ++++\n>   hw/watchdog/wdt_i6300esb.c          |  4 ++++\n>   hw/xen/xen_pt.c                     |  4 ++++\n>   64 files changed, 296 insertions(+)\n> \n> diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c\n> index f4fd5907b8..a0fb1ce037 100644\n> --- a/hw/acpi/piix4.c\n> +++ b/hw/acpi/piix4.c\n> @@ -718,6 +718,7 @@ static const TypeInfo piix4_pm_info = {\n>       .interfaces = (InterfaceInfo[]) {\n>           { TYPE_HOTPLUG_HANDLER },\n>           { TYPE_ACPI_DEVICE_IF },\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n>           { }\n>       }\n>   };\n> diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c\n> index 959c786261..337402e9c6 100644\n> --- a/hw/audio/ac97.c\n> +++ b/hw/audio/ac97.c\n> @@ -1431,6 +1431,10 @@ static const TypeInfo ac97_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof (AC97LinkState),\n>       .class_init    = ac97_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void ac97_register_types (void)\n> diff --git a/hw/audio/es1370.c b/hw/audio/es1370.c\n> index dd7c23d185..59cf252754 100644\n> --- a/hw/audio/es1370.c\n> +++ b/hw/audio/es1370.c\n> @@ -1082,6 +1082,10 @@ static const TypeInfo es1370_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof (ES1370State),\n>       .class_init    = es1370_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void es1370_register_types (void)\n> diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c\n> index 18a50a8f83..a3e670c188 100644\n> --- a/hw/audio/intel-hda.c\n> +++ b/hw/audio/intel-hda.c\n> @@ -1263,6 +1263,10 @@ static const TypeInfo intel_hda_info = {\n>       .instance_size = sizeof(IntelHDAState),\n>       .class_init    = intel_hda_class_init,\n>       .abstract      = true,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static const TypeInfo intel_hda_info_ich6 = {\n> diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c\n> index 303104dd19..cb0d04c1d9 100644\n> --- a/hw/char/serial-pci.c\n> +++ b/hw/char/serial-pci.c\n> @@ -250,6 +250,10 @@ static const TypeInfo serial_pci_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCISerialState),\n>       .class_init    = serial_pci_class_initfn,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static const TypeInfo multi_2x_serial_pci_info = {\n> @@ -257,6 +261,10 @@ static const TypeInfo multi_2x_serial_pci_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIMultiSerialState),\n>       .class_init    = multi_2x_serial_pci_class_initfn,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static const TypeInfo multi_4x_serial_pci_info = {\n> @@ -264,6 +272,10 @@ static const TypeInfo multi_4x_serial_pci_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIMultiSerialState),\n>       .class_init    = multi_4x_serial_pci_class_initfn,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void serial_pci_register_types(void)\n> diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c\n> index afc290ab91..b4d579857a 100644\n> --- a/hw/display/cirrus_vga.c\n> +++ b/hw/display/cirrus_vga.c\n> @@ -3162,6 +3162,10 @@ static const TypeInfo cirrus_vga_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCICirrusVGAState),\n>       .class_init    = cirrus_vga_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void cirrus_vga_register_types(void)\n> diff --git a/hw/display/qxl.c b/hw/display/qxl.c\n> index ae3677fd1e..b20e259122 100644\n> --- a/hw/display/qxl.c\n> +++ b/hw/display/qxl.c\n> @@ -2430,6 +2430,10 @@ static const TypeInfo qxl_pci_type_info = {\n>       .instance_size = sizeof(PCIQXLDevice),\n>       .abstract = true,\n>       .class_init = qxl_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void qxl_primary_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/display/sm501.c b/hw/display/sm501.c\n> index 9aa515b3da..6eddac911e 100644\n> --- a/hw/display/sm501.c\n> +++ b/hw/display/sm501.c\n> @@ -1843,6 +1843,10 @@ static const TypeInfo sm501_pci_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(SM501PCIState),\n>       .class_init    = sm501_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void sm501_register_types(void)\n> diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c\n> index ac9a76499e..7adb89fcb4 100644\n> --- a/hw/display/vga-pci.c\n> +++ b/hw/display/vga-pci.c\n> @@ -338,6 +338,10 @@ static const TypeInfo vga_pci_type_info = {\n>       .instance_size = sizeof(PCIVGAState),\n>       .abstract = true,\n>       .class_init = vga_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void vga_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c\n> index 4a64b41259..cdc3fed6ca 100644\n> --- a/hw/display/vmware_vga.c\n> +++ b/hw/display/vmware_vga.c\n> @@ -1350,6 +1350,10 @@ static const TypeInfo vmsvga_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(struct pci_vmsvga_state_s),\n>       .class_init    = vmsvga_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void vmsvga_register_types(void)\n> diff --git a/hw/i2c/smbus_ich9.c b/hw/i2c/smbus_ich9.c\n> index ea51e09186..e47556c9d8 100644\n> --- a/hw/i2c/smbus_ich9.c\n> +++ b/hw/i2c/smbus_ich9.c\n> @@ -119,6 +119,10 @@ static const TypeInfo ich9_smb_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(ICH9SMBState),\n>       .class_init = ich9_smb_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void ich9_smb_register(void)\n> diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c\n> index 334938a280..ad8155ca4c 100644\n> --- a/hw/i386/amd_iommu.c\n> +++ b/hw/i386/amd_iommu.c\n> @@ -1227,6 +1227,10 @@ static const TypeInfo amdviPCI = {\n>       .name = \"AMDVI-PCI\",\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(AMDVIPCIState),\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void amdvi_iommu_memory_region_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c\n> index 33e20cb3e8..d8559d8342 100644\n> --- a/hw/i386/kvm/pci-assign.c\n> +++ b/hw/i386/kvm/pci-assign.c\n> @@ -1864,6 +1864,10 @@ static const TypeInfo assign_info = {\n>       .instance_size      = sizeof(AssignedDevice),\n>       .class_init         = assign_class_init,\n>       .instance_init      = assigned_dev_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void assign_register_types(void)\n> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c\n> index 9ff79b1fd9..1a56465490 100644\n> --- a/hw/i386/pc_piix.c\n> +++ b/hw/i386/pc_piix.c\n> @@ -1055,6 +1055,10 @@ static TypeInfo isa_bridge_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init = isa_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void pt_graphics_register_types(void)\n> diff --git a/hw/i386/xen/xen_platform.c b/hw/i386/xen/xen_platform.c\n> index 9ba7474566..056b87de0b 100644\n> --- a/hw/i386/xen/xen_platform.c\n> +++ b/hw/i386/xen/xen_platform.c\n> @@ -517,6 +517,10 @@ static const TypeInfo xen_platform_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIXenPlatformState),\n>       .class_init    = xen_platform_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void xen_platform_register_types(void)\n> diff --git a/hw/i386/xen/xen_pvdevice.c b/hw/i386/xen/xen_pvdevice.c\n> index c093b34458..f748823658 100644\n> --- a/hw/i386/xen/xen_pvdevice.c\n> +++ b/hw/i386/xen/xen_pvdevice.c\n> @@ -127,6 +127,10 @@ static const TypeInfo xen_pv_type_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(XenPVDevice),\n>       .class_init    = xen_pv_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void xen_pv_register_types(void)\n> diff --git a/hw/ide/ich.c b/hw/ide/ich.c\n> index 9472a60cab..8dd0ced6b3 100644\n> --- a/hw/ide/ich.c\n> +++ b/hw/ide/ich.c\n> @@ -184,6 +184,10 @@ static const TypeInfo ich_ahci_info = {\n>       .instance_size = sizeof(AHCIPCIState),\n>       .instance_init = pci_ich9_ahci_init,\n>       .class_init    = ich_ahci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void ich_ahci_register_types(void)\n> diff --git a/hw/ide/pci.c b/hw/ide/pci.c\n> index f2dcc0ed77..053c0375c1 100644\n> --- a/hw/ide/pci.c\n> +++ b/hw/ide/pci.c\n> @@ -451,6 +451,10 @@ static const TypeInfo pci_ide_type_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIIDEState),\n>       .abstract = true,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void pci_ide_register_types(void)\n> diff --git a/hw/ipack/tpci200.c b/hw/ipack/tpci200.c\n> index 4dfa6b33f3..da05c8589d 100644\n> --- a/hw/ipack/tpci200.c\n> +++ b/hw/ipack/tpci200.c\n> @@ -646,6 +646,10 @@ static const TypeInfo tpci200_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(TPCI200State),\n>       .class_init    = tpci200_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void tpci200_register_types(void)\n> diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c\n> index 4d29a9900c..d20ea4c2ee 100644\n> --- a/hw/isa/i82378.c\n> +++ b/hw/isa/i82378.c\n> @@ -138,6 +138,10 @@ static const TypeInfo i82378_type_info = {\n>       .instance_size = sizeof(I82378State),\n>       .instance_init = i82378_init,\n>       .class_init = i82378_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void i82378_register_types(void)\n> diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c\n> index ac8416d42b..39f56ba44e 100644\n> --- a/hw/isa/lpc_ich9.c\n> +++ b/hw/isa/lpc_ich9.c\n> @@ -823,6 +823,7 @@ static const TypeInfo ich9_lpc_info = {\n>       .interfaces = (InterfaceInfo[]) {\n>           { TYPE_HOTPLUG_HANDLER },\n>           { TYPE_ACPI_DEVICE_IF },\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n>           { }\n>       }\n>   };\n> diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c\n> index f811eba59d..6b8bc3faf0 100644\n> --- a/hw/isa/piix4.c\n> +++ b/hw/isa/piix4.c\n> @@ -132,6 +132,10 @@ static const TypeInfo piix4_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PIIX4State),\n>       .class_init    = piix4_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void piix4_register_types(void)\n> diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c\n> index 50dc83df77..c129985e2a 100644\n> --- a/hw/isa/vt82c686.c\n> +++ b/hw/isa/vt82c686.c\n> @@ -301,6 +301,10 @@ static const TypeInfo via_ac97_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(VT686AC97State),\n>       .class_init    = via_ac97_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void vt82c686b_mc97_realize(PCIDevice *dev, Error **errp)\n> @@ -341,6 +345,10 @@ static const TypeInfo via_mc97_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(VT686MC97State),\n>       .class_init    = via_mc97_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   /* vt82c686 pm init */\n> @@ -419,6 +427,10 @@ static const TypeInfo via_pm_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(VT686PMState),\n>       .class_init    = via_pm_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static const VMStateDescription vmstate_via = {\n> @@ -502,6 +514,10 @@ static const TypeInfo via_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(VT82C686BState),\n>       .class_init    = via_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void vt82c686b_register_types(void)\n> diff --git a/hw/mips/gt64xxx_pci.c b/hw/mips/gt64xxx_pci.c\n> index e8b2eef688..5a9dad9aae 100644\n> --- a/hw/mips/gt64xxx_pci.c\n> +++ b/hw/mips/gt64xxx_pci.c\n> @@ -1232,6 +1232,10 @@ static const TypeInfo gt64120_pci_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init    = gt64120_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void gt64120_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/misc/edu.c b/hw/misc/edu.c\n> index 01acacf142..34eb05d213 100644\n> --- a/hw/misc/edu.c\n> +++ b/hw/misc/edu.c\n> @@ -408,12 +408,17 @@ static void edu_class_init(ObjectClass *class, void *data)\n>   \n>   static void pci_edu_register_types(void)\n>   {\n> +    static InterfaceInfo interfaces[] = {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    };\n>       static const TypeInfo edu_info = {\n>           .name          = \"edu\",\n>           .parent        = TYPE_PCI_DEVICE,\n>           .instance_size = sizeof(EduState),\n>           .instance_init = edu_instance_init,\n>           .class_init    = edu_class_init,\n> +        .interfaces = interfaces,\n>       };\n>   \n>       type_register_static(&edu_info);\n> diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c\n> index b3ef3ec1e3..a5a46827fe 100644\n> --- a/hw/misc/ivshmem.c\n> +++ b/hw/misc/ivshmem.c\n> @@ -1010,6 +1010,10 @@ static const TypeInfo ivshmem_common_info = {\n>       .instance_size = sizeof(IVShmemState),\n>       .abstract      = true,\n>       .class_init    = ivshmem_common_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static const VMStateDescription ivshmem_plain_vmsd = {\n> diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c\n> index 5d57f45dc6..298e65071c 100644\n> --- a/hw/misc/macio/macio.c\n> +++ b/hw/misc/macio/macio.c\n> @@ -415,6 +415,10 @@ static const TypeInfo macio_type_info = {\n>       .instance_init = macio_instance_init,\n>       .abstract      = true,\n>       .class_init    = macio_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void macio_register_types(void)\n> diff --git a/hw/misc/pci-testdev.c b/hw/misc/pci-testdev.c\n> index 7d5990213e..32041f535f 100644\n> --- a/hw/misc/pci-testdev.c\n> +++ b/hw/misc/pci-testdev.c\n> @@ -326,6 +326,10 @@ static const TypeInfo pci_testdev_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCITestDevState),\n>       .class_init    = pci_testdev_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void pci_testdev_register_types(void)\n> diff --git a/hw/net/e1000.c b/hw/net/e1000.c\n> index eebe3a9c13..acdb935af5 100644\n> --- a/hw/net/e1000.c\n> +++ b/hw/net/e1000.c\n> @@ -1685,6 +1685,10 @@ static const TypeInfo e1000_base_info = {\n>       .instance_init = e1000_instance_init,\n>       .class_size    = sizeof(E1000BaseClass),\n>       .abstract      = true,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static const E1000Info e1000_devices[] = {\n> diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c\n> index a7b9f77519..80b8f47c4b 100644\n> --- a/hw/net/eepro100.c\n> +++ b/hw/net/eepro100.c\n> @@ -2116,6 +2116,10 @@ static void eepro100_register_types(void)\n>           type_info.class_init = eepro100_class_init;\n>           type_info.instance_size = sizeof(EEPRO100State);\n>           type_info.instance_init = eepro100_instance_init;\n> +        type_info.interfaces = (InterfaceInfo[]) {\n> +            { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +            { },\n> +        };\n>   \n>           type_register(&type_info);\n>       }\n> diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c\n> index 798d681e25..3938e6ddd8 100644\n> --- a/hw/net/ne2000.c\n> +++ b/hw/net/ne2000.c\n> @@ -786,6 +786,10 @@ static const TypeInfo ne2000_info = {\n>       .instance_size = sizeof(PCINE2000State),\n>       .class_init    = ne2000_class_init,\n>       .instance_init = ne2000_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void ne2000_register_types(void)\n> diff --git a/hw/net/pcnet-pci.c b/hw/net/pcnet-pci.c\n> index 0acf8a4879..0ae5ca4701 100644\n> --- a/hw/net/pcnet-pci.c\n> +++ b/hw/net/pcnet-pci.c\n> @@ -365,6 +365,10 @@ static const TypeInfo pcnet_info = {\n>       .instance_size = sizeof(PCIPCNetState),\n>       .class_init    = pcnet_class_init,\n>       .instance_init = pcnet_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void pci_pcnet_register_types(void)\n> diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c\n> index 9273473d59..823a29df03 100644\n> --- a/hw/net/rocker/rocker.c\n> +++ b/hw/net/rocker/rocker.c\n> @@ -1525,6 +1525,10 @@ static const TypeInfo rocker_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(Rocker),\n>       .class_init    = rocker_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void rocker_register_types(void)\n> diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c\n> index 3be24bbee7..bef0464b2e 100644\n> --- a/hw/net/rtl8139.c\n> +++ b/hw/net/rtl8139.c\n> @@ -3442,6 +3442,10 @@ static const TypeInfo rtl8139_info = {\n>       .instance_size = sizeof(RTL8139State),\n>       .class_init    = rtl8139_class_init,\n>       .instance_init = rtl8139_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void rtl8139_register_types(void)\n> diff --git a/hw/net/sungem.c b/hw/net/sungem.c\n> index dffa0c90f3..6aa8d1117b 100644\n> --- a/hw/net/sungem.c\n> +++ b/hw/net/sungem.c\n> @@ -1437,6 +1437,10 @@ static const TypeInfo sungem_info = {\n>       .instance_size = sizeof(SunGEMState),\n>       .class_init    = sungem_class_init,\n>       .instance_init = sungem_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { }\n> +    }\n>   };\n>   \n>   static void sungem_register_types(void)\n> diff --git a/hw/net/sunhme.c b/hw/net/sunhme.c\n> index 60277adcf1..b1efa1b88d 100644\n> --- a/hw/net/sunhme.c\n> +++ b/hw/net/sunhme.c\n> @@ -968,6 +968,10 @@ static const TypeInfo sunhme_info = {\n>       .class_init    = sunhme_class_init,\n>       .instance_size = sizeof(SunHMEState),\n>       .instance_init = sunhme_instance_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { }\n> +    }\n>   };\n>   \n>   static void sunhme_register_types(void)\n> diff --git a/hw/pci-bridge/dec.c b/hw/pci-bridge/dec.c\n> index eb275e1a25..84492d5e5f 100644\n> --- a/hw/pci-bridge/dec.c\n> +++ b/hw/pci-bridge/dec.c\n> @@ -79,6 +79,10 @@ static const TypeInfo dec_21154_pci_bridge_info = {\n>       .parent        = TYPE_PCI_BRIDGE,\n>       .instance_size = sizeof(PCIBridge),\n>       .class_init    = dec_21154_pci_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   PCIBus *pci_dec_21154_init(PCIBus *parent_bus, int devfn)\n> @@ -138,6 +142,10 @@ static const TypeInfo dec_21154_pci_host_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init    = dec_21154_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void pci_dec_21154_device_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/pci-bridge/i82801b11.c b/hw/pci-bridge/i82801b11.c\n> index 2c1b747b4b..cb522bf30c 100644\n> --- a/hw/pci-bridge/i82801b11.c\n> +++ b/hw/pci-bridge/i82801b11.c\n> @@ -106,6 +106,10 @@ static const TypeInfo i82801b11_bridge_info = {\n>       .parent        = TYPE_PCI_BRIDGE,\n>       .instance_size = sizeof(I82801b11Bridge),\n>       .class_init    = i82801b11_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void d2pbr_register(void)\n> diff --git a/hw/pci-bridge/pci_bridge_dev.c b/hw/pci-bridge/pci_bridge_dev.c\n> index 4373f1d3e2..d56f6638c2 100644\n> --- a/hw/pci-bridge/pci_bridge_dev.c\n> +++ b/hw/pci-bridge/pci_bridge_dev.c\n> @@ -238,6 +238,7 @@ static const TypeInfo pci_bridge_dev_info = {\n>       .instance_finalize = pci_bridge_dev_instance_finalize,\n>       .interfaces = (InterfaceInfo[]) {\n>           { TYPE_HOTPLUG_HANDLER },\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n>           { }\n>       }\n>   };\n> diff --git a/hw/pci-bridge/pci_expander_bridge.c b/hw/pci-bridge/pci_expander_bridge.c\n> index ff59abf208..8c8ac737ad 100644\n> --- a/hw/pci-bridge/pci_expander_bridge.c\n> +++ b/hw/pci-bridge/pci_expander_bridge.c\n> @@ -316,6 +316,10 @@ static const TypeInfo pxb_dev_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PXBDev),\n>       .class_init    = pxb_dev_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void pxb_pcie_dev_realize(PCIDevice *dev, Error **errp)\n> @@ -350,6 +354,10 @@ static const TypeInfo pxb_pcie_dev_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PXBDev),\n>       .class_init    = pxb_pcie_dev_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void pxb_register_types(void)\n> diff --git a/hw/pci-host/apb.c b/hw/pci-host/apb.c\n> index b709456b97..1edf57f600 100644\n> --- a/hw/pci-host/apb.c\n> +++ b/hw/pci-host/apb.c\n> @@ -836,6 +836,10 @@ static const TypeInfo pbm_pci_host_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init    = pbm_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void pbm_host_class_init(ObjectClass *klass, void *data)\n> @@ -883,6 +887,10 @@ static const TypeInfo pbm_pci_bridge_info = {\n>       .parent        = TYPE_PCI_BRIDGE,\n>       .class_init    = pbm_pci_bridge_class_init,\n>       .instance_size = sizeof(PBMPCIBridge),\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void pbm_iommu_memory_region_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c\n> index 89133a9dd3..9f61e27edc 100644\n> --- a/hw/pci-host/bonito.c\n> +++ b/hw/pci-host/bonito.c\n> @@ -833,6 +833,10 @@ static const TypeInfo bonito_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIBonitoState),\n>       .class_init    = bonito_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void bonito_pcihost_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/pci-host/gpex.c b/hw/pci-host/gpex.c\n> index be25245219..4090793cf0 100644\n> --- a/hw/pci-host/gpex.c\n> +++ b/hw/pci-host/gpex.c\n> @@ -166,6 +166,10 @@ static const TypeInfo gpex_root_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(GPEXRootState),\n>       .class_init = gpex_root_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void gpex_register(void)\n> diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c\n> index 2e281f6155..38cd279b6b 100644\n> --- a/hw/pci-host/grackle.c\n> +++ b/hw/pci-host/grackle.c\n> @@ -142,6 +142,10 @@ static const TypeInfo grackle_pci_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init = grackle_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void pci_grackle_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c\n> index 894e131c00..2b8d90a853 100644\n> --- a/hw/pci-host/piix.c\n> +++ b/hw/pci-host/piix.c\n> @@ -694,6 +694,10 @@ static const TypeInfo piix3_pci_type_info = {\n>       .instance_size = sizeof(PIIX3State),\n>       .abstract = true,\n>       .class_init = pci_piix3_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void piix3_class_init(ObjectClass *klass, void *data)\n> @@ -748,6 +752,10 @@ static const TypeInfo i440fx_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCII440FXState),\n>       .class_init    = i440fx_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   /* IGD Passthrough Host Bridge. */\n> diff --git a/hw/pci-host/ppce500.c b/hw/pci-host/ppce500.c\n> index becc0eeb76..39cd24464d 100644\n> --- a/hw/pci-host/ppce500.c\n> +++ b/hw/pci-host/ppce500.c\n> @@ -516,6 +516,10 @@ static const TypeInfo e500_host_bridge_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PPCE500PCIBridgeState),\n>       .class_init    = e500_host_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static Property pcihost_properties[] = {\n> diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c\n> index 8b293ba0f1..92eed0f3e1 100644\n> --- a/hw/pci-host/prep.c\n> +++ b/hw/pci-host/prep.c\n> @@ -372,6 +372,10 @@ static const TypeInfo raven_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(RavenPCIState),\n>       .class_init = raven_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static Property raven_pcihost_properties[] = {\n> diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c\n> index 1ff648e80c..ddaa7d1b44 100644\n> --- a/hw/pci-host/q35.c\n> +++ b/hw/pci-host/q35.c\n> @@ -591,6 +591,10 @@ static const TypeInfo mch_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(MCHPCIState),\n>       .class_init = mch_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void q35_register(void)\n> diff --git a/hw/pci-host/uninorth.c b/hw/pci-host/uninorth.c\n> index 6cf5e59f86..ea5c265718 100644\n> --- a/hw/pci-host/uninorth.c\n> +++ b/hw/pci-host/uninorth.c\n> @@ -374,6 +374,10 @@ static const TypeInfo unin_main_pci_host_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init = unin_main_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void u3_agp_pci_host_class_init(ObjectClass *klass, void *data)\n> @@ -398,6 +402,10 @@ static const TypeInfo u3_agp_pci_host_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init = u3_agp_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void unin_agp_pci_host_class_init(ObjectClass *klass, void *data)\n> @@ -422,6 +430,10 @@ static const TypeInfo unin_agp_pci_host_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init = unin_agp_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void unin_internal_pci_host_class_init(ObjectClass *klass, void *data)\n> @@ -446,6 +458,10 @@ static const TypeInfo unin_internal_pci_host_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init = unin_internal_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void pci_unin_main_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c\n> index aa1fdf75fd..6394a520fc 100644\n> --- a/hw/pci-host/versatile.c\n> +++ b/hw/pci-host/versatile.c\n> @@ -487,6 +487,10 @@ static const TypeInfo versatile_pci_host_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init    = versatile_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static Property pci_vpb_properties[] = {\n> diff --git a/hw/ppc/ppc4xx_pci.c b/hw/ppc/ppc4xx_pci.c\n> index 6953f8b9ac..4765dcecca 100644\n> --- a/hw/ppc/ppc4xx_pci.c\n> +++ b/hw/ppc/ppc4xx_pci.c\n> @@ -359,6 +359,10 @@ static const TypeInfo ppc4xx_host_bridge_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init    = ppc4xx_host_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void ppc4xx_pcihost_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c\n> index e295d88939..419fc668ac 100644\n> --- a/hw/scsi/esp-pci.c\n> +++ b/hw/scsi/esp-pci.c\n> @@ -398,6 +398,10 @@ static const TypeInfo esp_pci_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIESPState),\n>       .class_init = esp_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   typedef struct {\n> diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c\n> index 3e56ab267c..423a2848ea 100644\n> --- a/hw/scsi/lsi53c895a.c\n> +++ b/hw/scsi/lsi53c895a.c\n> @@ -2244,6 +2244,10 @@ static const TypeInfo lsi_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(LSIState),\n>       .class_init    = lsi_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void lsi53c810_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c\n> index 535ee267c3..d5eae6239a 100644\n> --- a/hw/scsi/megasas.c\n> +++ b/hw/scsi/megasas.c\n> @@ -2468,6 +2468,10 @@ static struct MegasasInfo megasas_devices[] = {\n>           .is_express = false,\n>           .vmsd = &vmstate_megasas_gen1,\n>           .props = megasas_properties_gen1,\n> +        .interfaces = (InterfaceInfo[]) {\n> +            { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +            { },\n> +        },\n>       },{\n>           .name = TYPE_MEGASAS_GEN2,\n>           .desc = \"LSI MegaRAID SAS 2108\",\n> diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c\n> index d05fa9f549..f6db1b0103 100644\n> --- a/hw/scsi/mptsas.c\n> +++ b/hw/scsi/mptsas.c\n> @@ -1439,6 +1439,10 @@ static const TypeInfo mptsas_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(MPTSASState),\n>       .class_init = mptsas1068_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void mptsas_register_types(void)\n> diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c\n> index 6d6a791ee9..b064a087c9 100644\n> --- a/hw/sd/sdhci.c\n> +++ b/hw/sd/sdhci.c\n> @@ -1315,6 +1315,10 @@ static const TypeInfo sdhci_pci_info = {\n>       .parent = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(SDHCIState),\n>       .class_init = sdhci_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static Property sdhci_sysbus_properties[] = {\n> diff --git a/hw/sh4/sh_pci.c b/hw/sh4/sh_pci.c\n> index 38395c082b..cbb01af57f 100644\n> --- a/hw/sh4/sh_pci.c\n> +++ b/hw/sh4/sh_pci.c\n> @@ -179,6 +179,10 @@ static const TypeInfo sh_pci_host_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(PCIDevice),\n>       .class_init    = sh_pci_host_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void sh_pci_device_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c\n> index c3280aaf38..8282651aeb 100644\n> --- a/hw/sparc64/sun4u.c\n> +++ b/hw/sparc64/sun4u.c\n> @@ -275,6 +275,10 @@ static const TypeInfo ebus_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(EbusState),\n>       .class_init    = ebus_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   #define TYPE_OPENPROM \"openprom\"\n> diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c\n> index 6dedcb8989..8c0fc53a26 100644\n> --- a/hw/usb/hcd-ehci-pci.c\n> +++ b/hw/usb/hcd-ehci-pci.c\n> @@ -170,6 +170,10 @@ static const TypeInfo ehci_pci_type_info = {\n>       .instance_finalize = usb_ehci_pci_finalize,\n>       .abstract = true,\n>       .class_init = ehci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void ehci_data_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c\n> index 267982e160..a31df67daa 100644\n> --- a/hw/usb/hcd-ohci.c\n> +++ b/hw/usb/hcd-ohci.c\n> @@ -2139,6 +2139,10 @@ static const TypeInfo ohci_pci_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(OHCIPCIState),\n>       .class_init    = ohci_pci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static Property ohci_sysbus_properties[] = {\n> diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c\n> index e3562a4c60..836b11f177 100644\n> --- a/hw/usb/hcd-uhci.c\n> +++ b/hw/usb/hcd-uhci.c\n> @@ -1323,6 +1323,10 @@ static const TypeInfo uhci_pci_type_info = {\n>       .class_size    = sizeof(UHCIPCIDeviceClass),\n>       .abstract = true,\n>       .class_init = uhci_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void uhci_data_class_init(ObjectClass *klass, void *data)\n> diff --git a/hw/vfio/pci-quirks.c b/hw/vfio/pci-quirks.c\n> index 349085ea12..2bd9d126d1 100644\n> --- a/hw/vfio/pci-quirks.c\n> +++ b/hw/vfio/pci-quirks.c\n> @@ -1197,6 +1197,10 @@ static TypeInfo vfio_pci_igd_lpc_bridge_info = {\n>       .name = \"vfio-pci-igd-lpc-bridge\",\n>       .parent = TYPE_PCI_DEVICE,\n>       .class_init = vfio_pci_igd_lpc_bridge_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void vfio_pci_igd_register_types(void)\n> diff --git a/hw/watchdog/wdt_i6300esb.c b/hw/watchdog/wdt_i6300esb.c\n> index 49b3cd188a..e596b0804d 100644\n> --- a/hw/watchdog/wdt_i6300esb.c\n> +++ b/hw/watchdog/wdt_i6300esb.c\n> @@ -463,6 +463,10 @@ static const TypeInfo i6300esb_info = {\n>       .parent        = TYPE_PCI_DEVICE,\n>       .instance_size = sizeof(I6300State),\n>       .class_init    = i6300esb_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void i6300esb_register_types(void)\n> diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c\n> index 375efa68f6..01df3414d3 100644\n> --- a/hw/xen/xen_pt.c\n> +++ b/hw/xen/xen_pt.c\n> @@ -964,6 +964,10 @@ static const TypeInfo xen_pci_passthrough_info = {\n>       .instance_size = sizeof(XenPCIPassthroughState),\n>       .instance_finalize = xen_pci_passthrough_finalize,\n>       .class_init = xen_pci_passthrough_class_init,\n> +    .interfaces = (InterfaceInfo[]) {\n> +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> +        { },\n> +    },\n>   };\n>   \n>   static void xen_pci_passthrough_register_types(void)\n> \n\nFor the PCI/x86 code:\n\nReviewed-by: Marcel Apfelbaum <marcel@redhat.com>\n\nThanks,\nMarcel","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ext-mx02.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx02.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=marcel@redhat.com"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y2qMt5NsWz9t3v\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 28 Sep 2017 19:36:58 +1000 (AEST)","from localhost ([::1]:58187 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dxVFY-0004qO-RE\n\tfor incoming@patchwork.ozlabs.org; Thu, 28 Sep 2017 05:36:56 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:36035)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <marcel@redhat.com>) id 1dxVF6-0004pl-KG\n\tfor qemu-devel@nongnu.org; Thu, 28 Sep 2017 05:36:32 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <marcel@redhat.com>) id 1dxVF2-0002Vl-9H\n\tfor qemu-devel@nongnu.org; Thu, 28 Sep 2017 05:36:28 -0400","from mx1.redhat.com ([209.132.183.28]:45018)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <marcel@redhat.com>)\n\tid 1dxVEh-0002QC-2u; Thu, 28 Sep 2017 05:36:03 -0400","from smtp.corp.redhat.com\n\t(int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 93A3DA7FE8;\n\tThu, 28 Sep 2017 09:36:01 +0000 (UTC)","from mapfelba-osx.local (unknown [10.35.206.52])\n\tby smtp.corp.redhat.com (Postfix) with ESMTPS id 440048F891;\n\tThu, 28 Sep 2017 09:35:37 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com 93A3DA7FE8","To":"Eduardo Habkost <ehabkost@redhat.com>, qemu-devel@nongnu.org","References":"<20170927195635.16014-1-ehabkost@redhat.com>\n\t<20170927195635.16014-5-ehabkost@redhat.com>","From":"Marcel Apfelbaum <marcel@redhat.com>","Message-ID":"<47c39aff-8d94-886b-2ce0-9af08541976f@redhat.com>","Date":"Thu, 28 Sep 2017 12:35:35 +0300","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0)\n\tGecko/20100101 Thunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20170927195635.16014-5-ehabkost@redhat.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Language":"en-US","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.14","X-Greylist":"Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.26]);\n\tThu, 28 Sep 2017 09:36:02 +0000 (UTC)","Content-Transfer-Encoding":"quoted-printable","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"209.132.183.28","Subject":"Re: [Qemu-devel] [PATCH v2 4/5] pci: Add\n\tINTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, \"Michael S. Tsirkin\"\n\t<mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Mark Cave-Ayland\n\t<mark.cave-ayland@ilande.co.uk>, \tGerd Hoffmann <kraxel@redhat.com>,\n\tDavid Gibson <dgibson@redhat.com>, Jiri Slaby <jslaby@suse.cz>, \n\tHannes Reinecke <hare@suse.com>, Stefano Stabellini\n\t<sstabellini@kernel.org>, Alberto Garcia <berto@igalia.com>,\n\tqemu-block@nongnu.org, \tAlexander Graf <agraf@suse.de>,\n\t=?utf-8?q?Herv=C3=A9_Poussineau?= <hpoussin@reactos.org>,\n\tAnthony Perard <anthony.perard@citrix.com>,\n\txen-devel@lists.xenproject.org, \tRichard Henderson <rth@twiddle.net>,\n\tArtyom Tarasenko <atar4qemu@gmail.com>, Jiri Pirko <jiri@resnulli.us>, \n\tAlex Williamson <alex.williamson@redhat.com>, qemu-arm@nongnu.org,\n\tLaine Stump <laine@redhat.com>, Igor Mammedov <imammedo@redhat.com>,\n\tYongbok Kim <yongbok.kim@imgtec.com>, Alistair Francis\n\t<alistair23@gmail.com>, John Snow <jsnow@redhat.com>, David Gibson\n\t<david@gibson.dropbear.id.au>, qemu-ppc@nongnu.org, Paolo Bonzini\n\t<pbonzini@redhat.com>, Aurelien Jarno <aurelien@aurel32.net>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1777023,"web_url":"http://patchwork.ozlabs.org/comment/1777023/","msgid":"<20170928131234.GP4115@localhost.localdomain>","list_archive_url":null,"date":"2017-09-28T13:12:34","subject":"Re: [Qemu-devel] [Xen-devel] [PATCH v2 4/5] pci: Add\n\tINTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices","submitter":{"id":195,"url":"http://patchwork.ozlabs.org/api/people/195/","name":"Eduardo Habkost","email":"ehabkost@redhat.com"},"content":"On Thu, Sep 28, 2017 at 02:33:57AM -0600, Jan Beulich wrote:\n> >>> On 27.09.17 at 21:56, <ehabkost@redhat.com> wrote:\n> > --- a/hw/xen/xen_pt.c\n> > +++ b/hw/xen/xen_pt.c\n> > @@ -964,6 +964,10 @@ static const TypeInfo xen_pci_passthrough_info = {\n> >      .instance_size = sizeof(XenPCIPassthroughState),\n> >      .instance_finalize = xen_pci_passthrough_finalize,\n> >      .class_init = xen_pci_passthrough_class_init,\n> > +    .interfaces = (InterfaceInfo[]) {\n> > +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> > +        { },\n> > +    },\n> >  };\n> \n> Passed through devices can be both PCI and PCIe, so following\n> the description of the patch I don't think these can be statically\n> given either property. Granted quite a bit of PCIe specific\n> functionality may be missing in the Xen code ...\n\nThis is just static data about what the device type supports, not\nabout what a given device instance really is.  Deciding if the\ndevice is PCIe or Conventional at runtime is out of the scope of\nthis series.\n\nThat said, if passed through PCI Express devices are really\nsupported, it looks like this should be marked as hybrid.","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ext-mx05.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx05.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=ehabkost@redhat.com"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y2w9w5g8Cz9tXd\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 28 Sep 2017 23:13:40 +1000 (AEST)","from localhost ([::1]:59219 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dxYdG-0006zG-S3\n\tfor incoming@patchwork.ozlabs.org; Thu, 28 Sep 2017 09:13:38 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:32911)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <ehabkost@redhat.com>) id 1dxYcq-0006yr-GI\n\tfor qemu-devel@nongnu.org; Thu, 28 Sep 2017 09:13:16 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <ehabkost@redhat.com>) id 1dxYcl-0003Q7-HX\n\tfor qemu-devel@nongnu.org; Thu, 28 Sep 2017 09:13:12 -0400","from mx1.redhat.com ([209.132.183.28]:58784)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <ehabkost@redhat.com>)\n\tid 1dxYcZ-0003Hz-MX; Thu, 28 Sep 2017 09:12:55 -0400","from smtp.corp.redhat.com\n\t(int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id A7DDF2C727E;\n\tThu, 28 Sep 2017 13:12:53 +0000 (UTC)","from localhost (ovpn-116-3.gru2.redhat.com [10.97.116.3])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id DF21EB32A8;\n\tThu, 28 Sep 2017 13:12:35 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com A7DDF2C727E","Date":"Thu, 28 Sep 2017 10:12:34 -0300","From":"Eduardo Habkost <ehabkost@redhat.com>","To":"Jan Beulich <JBeulich@suse.com>","Message-ID":"<20170928131234.GP4115@localhost.localdomain>","References":"<20170927195635.16014-1-ehabkost@redhat.com>\n\t<20170927195635.16014-5-ehabkost@redhat.com>\n\t<59CCD0150200007800180507@prv-mh.provo.novell.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<59CCD0150200007800180507@prv-mh.provo.novell.com>","X-Fnord":"you can see the fnord","User-Agent":"Mutt/1.8.3 (2017-05-23)","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.14","X-Greylist":"Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.29]);\n\tThu, 28 Sep 2017 13:12:54 +0000 (UTC)","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"209.132.183.28","Subject":"Re: [Qemu-devel] [Xen-devel] [PATCH v2 4/5] pci: Add\n\tINTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, \"Michael S. Tsirkin\"\n\t<mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Mark Cave-Ayland\n\t<mark.cave-ayland@ilande.co.uk>, qemu-devel@nongnu.org,\n\tGerd Hoffmann <kraxel@redhat.com>, David Gibson <dgibson@redhat.com>,\n\tJiri Slaby <jslaby@suse.cz>, \tHannes Reinecke <hare@suse.com>,\n\tStefano Stabellini <sstabellini@kernel.org>, \n\tAlberto Garcia <berto@igalia.com>, qemu-block@nongnu.org, \n\tAlexander Graf <agraf@suse.de>, =?iso-8859-1?q?Herv=E9?=\n\tPoussineau <hpoussin@reactos.org>, Anthony Perard\n\t<anthony.perard@citrix.com>, xen-devel@lists.xenproject.org, Richard\n\tHenderson <rth@twiddle.net>, Artyom Tarasenko <atar4qemu@gmail.com>,\n\tJiri Pirko <jiri@resnulli.us>, \tMarcel Apfelbaum <marcel@redhat.com>,\n\tAlex Williamson <alex.williamson@redhat.com>, qemu-arm@nongnu.org,\n\tLaine Stump <laine@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,\n\tYongbok Kim <yongbok.kim@imgtec.com>, Alistair Francis\n\t<alistair23@gmail.com>, John Snow <jsnow@redhat.com>, David Gibson\n\t<david@gibson.dropbear.id.au>, qemu-ppc@nongnu.org, Igor Mammedov\n\t<imammedo@redhat.com>, Aurelien Jarno <aurelien@aurel32.net>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1779149,"web_url":"http://patchwork.ozlabs.org/comment/1779149/","msgid":"<alpine.DEB.2.10.1710031003331.17914@sstabellini-ThinkPad-X260>","list_archive_url":null,"date":"2017-10-03T17:12:11","subject":"Re: [Qemu-devel] xen-pci-passthrough PCI Express support? (Re:\n\t[Xen-devel] [PATCH v2 4/5] pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE\n\tto Conventional PCI devices)","submitter":{"id":68602,"url":"http://patchwork.ozlabs.org/api/people/68602/","name":"Stefano Stabellini","email":"sstabellini@kernel.org"},"content":"On Mon, 2 Oct 2017, Eduardo Habkost wrote:\n> On Thu, Sep 28, 2017 at 10:12:34AM -0300, Eduardo Habkost wrote:\n> > On Thu, Sep 28, 2017 at 02:33:57AM -0600, Jan Beulich wrote:\n> > > >>> On 27.09.17 at 21:56, <ehabkost@redhat.com> wrote:\n> > > > --- a/hw/xen/xen_pt.c\n> > > > +++ b/hw/xen/xen_pt.c\n> > > > @@ -964,6 +964,10 @@ static const TypeInfo xen_pci_passthrough_info = {\n> > > >      .instance_size = sizeof(XenPCIPassthroughState),\n> > > >      .instance_finalize = xen_pci_passthrough_finalize,\n> > > >      .class_init = xen_pci_passthrough_class_init,\n> > > > +    .interfaces = (InterfaceInfo[]) {\n> > > > +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> > > > +        { },\n> > > > +    },\n> > > >  };\n> > > \n> > > Passed through devices can be both PCI and PCIe, so following\n> > > the description of the patch I don't think these can be statically\n> > > given either property. Granted quite a bit of PCIe specific\n> > > functionality may be missing in the Xen code ...\n> > \n> > This is just static data about what the device type supports, not\n> > about what a given device instance really is.  Deciding if the\n> > device is PCIe or Conventional at runtime is out of the scope of\n> > this series.\n> > \n> > That said, if passed through PCI Express devices are really\n> > supported, it looks like this should be marked as hybrid.\n> \n> Can anybody confirm if PCI Express devices are really supported\n> by xen-pci-passthrough?\n> \n> I suggest we add only INTERFACE_CONVENTIONAL_PCI_DEVICE to the\n> class info until we confirm that.\n> \n> (In other words, apply this patch as-is, and add\n> INTERFACE_PCIE_DEVICE later as a follow-up patch if appropriate.)\n\nYes, xen-pci-passthrough can expose PCI Express devices to the guest.  I\ndon't think the old xen-pci-passthrough code does anything special to\nmark it as such internally in QEMU, but it can deal with the PCI Express\nCapabilities and expose/emulate them for the guest's benefit.","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","mail.kernel.org;\n\tdmarc=none (p=none dis=none) header.from=kernel.org","mail.kernel.org;\n\tspf=none smtp.mailfrom=sstabellini@kernel.org"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y65Fc6NWJz9t6m\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  4 Oct 2017 04:12:51 +1100 (AEDT)","from localhost ([::1]:59586 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dzQkQ-0006Sc-F8\n\tfor incoming@patchwork.ozlabs.org; Tue, 03 Oct 2017 13:12:46 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:55565)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <sstabellini@kernel.org>) id 1dzQk4-0006Qq-PG\n\tfor qemu-devel@nongnu.org; Tue, 03 Oct 2017 13:12:25 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <sstabellini@kernel.org>) id 1dzQk3-0006Gy-LL\n\tfor qemu-devel@nongnu.org; Tue, 03 Oct 2017 13:12:24 -0400","from mail.kernel.org ([198.145.29.99]:34648)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <sstabellini@kernel.org>)\n\tid 1dzQju-000604-Ve; Tue, 03 Oct 2017 13:12:15 -0400","from [10.149.184.130]\n\t(162-198-228-33.lightspeed.wlfrct.sbcglobal.net [162.198.228.33])\n\t(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mail.kernel.org (Postfix) with ESMTPSA id E027B2188D;\n\tTue,  3 Oct 2017 17:12:11 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mail.kernel.org E027B2188D","Date":"Tue, 3 Oct 2017 10:12:11 -0700 (PDT)","From":"Stefano Stabellini <sstabellini@kernel.org>","X-X-Sender":"sstabellini@sstabellini-ThinkPad-X260","To":"Eduardo Habkost <ehabkost@redhat.com>","In-Reply-To":"<20171003001257.GA7087@localhost.localdomain>","Message-ID":"<alpine.DEB.2.10.1710031003331.17914@sstabellini-ThinkPad-X260>","References":"<20170927195635.16014-1-ehabkost@redhat.com>\n\t<20170927195635.16014-5-ehabkost@redhat.com>\n\t<59CCD0150200007800180507@prv-mh.provo.novell.com>\n\t<20170928131234.GP4115@localhost.localdomain>\n\t<20171003001257.GA7087@localhost.localdomain>","User-Agent":"Alpine 2.10 (DEB 1266 2009-07-14)","MIME-Version":"1.0","Content-Type":"TEXT/PLAIN; charset=US-ASCII","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"198.145.29.99","Subject":"Re: [Qemu-devel] xen-pci-passthrough PCI Express support? (Re:\n\t[Xen-devel] [PATCH v2 4/5] pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE\n\tto Conventional PCI devices)","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, \"Michael S. Tsirkin\"\n\t<mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Mark Cave-Ayland\n\t<mark.cave-ayland@ilande.co.uk>, qemu-devel@nongnu.org,\n\tGerd Hoffmann <kraxel@redhat.com>, \tJan Beulich <JBeulich@suse.com>,\n\tDavid Gibson <dgibson@redhat.com>, Jiri Slaby <jslaby@suse.cz>, \n\tHannes Reinecke <hare@suse.com>, Stefano Stabellini\n\t<sstabellini@kernel.org>, Alberto Garcia <berto@igalia.com>,\n\tqemu-block@nongnu.org, \tAlexander Graf <agraf@suse.de>,\n\t=?utf-8?q?Herv=C3=A9_Poussineau?= <hpoussin@reactos.org>,\n\tMarcel Apfelbaum <marcel@redhat.com>, xen-devel@lists.xenproject.org, \n\tDavid Gibson <david@gibson.dropbear.id.au>, \n\tArtyom Tarasenko <atar4qemu@gmail.com>, Jiri Pirko <jiri@resnulli.us>, \n\tAnthony Perard <anthony.perard@citrix.com>, Alex Williamson\n\t<alex.williamson@redhat.com>, qemu-arm@nongnu.org,\n\tLaine Stump <laine@redhat.com>, Igor Mammedov <imammedo@redhat.com>,\n\tYongbok Kim <yongbok.kim@imgtec.com>, Alistair Francis\n\t<alistair23@gmail.com>, John Snow <jsnow@redhat.com>, Richard Henderson\n\t<rth@twiddle.net>, qemu-ppc@nongnu.org, Paolo Bonzini\n\t<pbonzini@redhat.com>, Aurelien Jarno <aurelien@aurel32.net>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1779562,"web_url":"http://patchwork.ozlabs.org/comment/1779562/","msgid":"<59D4C11F0200007800181F48@prv-mh.provo.novell.com>","list_archive_url":null,"date":"2017-10-04T09:08:15","subject":"[Qemu-devel] xen-pci-passthrough PCI Express support? (Re:\n\t[Xen-devel] [PATCH v2 4/5] pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE\n\tto Conventional PCI devices)","submitter":{"id":9477,"url":"http://patchwork.ozlabs.org/api/people/9477/","name":"Jan Beulich","email":"JBeulich@suse.com"},"content":">>> On 03.10.17 at 02:12, <ehabkost@redhat.com> wrote:\n> On Thu, Sep 28, 2017 at 10:12:34AM -0300, Eduardo Habkost wrote:\n>> On Thu, Sep 28, 2017 at 02:33:57AM -0600, Jan Beulich wrote:\n>> > >>> On 27.09.17 at 21:56, <ehabkost@redhat.com> wrote:\n>> > > --- a/hw/xen/xen_pt.c\n>> > > +++ b/hw/xen/xen_pt.c\n>> > > @@ -964,6 +964,10 @@ static const TypeInfo xen_pci_passthrough_info = {\n>> > >      .instance_size = sizeof(XenPCIPassthroughState),\n>> > >      .instance_finalize = xen_pci_passthrough_finalize,\n>> > >      .class_init = xen_pci_passthrough_class_init,\n>> > > +    .interfaces = (InterfaceInfo[]) {\n>> > > +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n>> > > +        { },\n>> > > +    },\n>> > >  };\n>> > \n>> > Passed through devices can be both PCI and PCIe, so following\n>> > the description of the patch I don't think these can be statically\n>> > given either property. Granted quite a bit of PCIe specific\n>> > functionality may be missing in the Xen code ...\n>> \n>> This is just static data about what the device type supports, not\n>> about what a given device instance really is.  Deciding if the\n>> device is PCIe or Conventional at runtime is out of the scope of\n>> this series.\n>> \n>> That said, if passed through PCI Express devices are really\n>> supported, it looks like this should be marked as hybrid.\n> \n> Can anybody confirm if PCI Express devices are really supported\n> by xen-pci-passthrough?\n\nI think I've clearly said they're supported, with some limitations.\n\nJan","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y6VSy4db1z9sRW\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  4 Oct 2017 20:09:06 +1100 (AEDT)","from localhost ([::1]:33828 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dzffs-0007qq-MZ\n\tfor incoming@patchwork.ozlabs.org; Wed, 04 Oct 2017 05:09:04 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:55427)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <JBeulich@suse.com>) id 1dzffU-0007pG-7q\n\tfor qemu-devel@nongnu.org; Wed, 04 Oct 2017 05:08:41 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <JBeulich@suse.com>) id 1dzffT-0002sF-B7\n\tfor qemu-devel@nongnu.org; Wed, 04 Oct 2017 05:08:40 -0400","from prv-mh.provo.novell.com ([137.65.248.74]:59934)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <JBeulich@suse.com>)\n\tid 1dzffD-0002XU-7g; Wed, 04 Oct 2017 05:08:23 -0400","from INET-PRV-MTA by prv-mh.provo.novell.com\n\twith Novell_GroupWise; Wed, 04 Oct 2017 03:08:18 -0600"],"Message-Id":"<59D4C11F0200007800181F48@prv-mh.provo.novell.com>","X-Mailer":"Novell GroupWise Internet Agent 14.2.2 ","Date":"Wed, 04 Oct 2017 03:08:15 -0600","From":"\"Jan Beulich\" <JBeulich@suse.com>","To":"\"Eduardo Habkost\" <ehabkost@redhat.com>","References":"<20170927195635.16014-1-ehabkost@redhat.com>\n\t<20170927195635.16014-5-ehabkost@redhat.com>\n\t<59CCD0150200007800180507@prv-mh.provo.novell.com>\n\t<20170928131234.GP4115@localhost.localdomain>\n\t<20171003001257.GA7087@localhost.localdomain>","In-Reply-To":"<20171003001257.GA7087@localhost.localdomain>","Mime-Version":"1.0","Content-Type":"text/plain; charset=US-ASCII","Content-Transfer-Encoding":"quoted-printable","Content-Disposition":"inline","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 3.x [fuzzy]","X-Received-From":"137.65.248.74","Subject":"[Qemu-devel] xen-pci-passthrough PCI Express support? (Re:\n\t[Xen-devel] [PATCH v2 4/5] pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE\n\tto Conventional PCI devices)","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, \"Michael S. Tsirkin\"\n\t<mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Mark Cave-Ayland\n\t<mark.cave-ayland@ilande.co.uk>, qemu-devel@nongnu.org,\n\tGerd Hoffmann <kraxel@redhat.com>, David Gibson <dgibson@redhat.com>,\n\tJiri Slaby <jslaby@suse.cz>, \tHannes Reinecke <hare@suse.com>,\n\tStefano Stabellini <sstabellini@kernel.org>, \n\tAlberto Garcia <berto@igalia.com>, qemu-block@nongnu.org, \n\tAlexander Graf <agraf@suse.de>, =?utf-8?q?Herv=C3=A9_Poussineau?=\n\t<hpoussin@reactos.org>, Anthony Perard <anthony.perard@citrix.com>,\n\txen-devel@lists.xenproject.org, \tRichard Henderson <rth@twiddle.net>,\n\tArtyom Tarasenko <atar4qemu@gmail.com>, Jiri Pirko <jiri@resnulli.us>, \n\tMarcel Apfelbaum <marcel@redhat.com>, \n\tAlex Williamson <alex.williamson@redhat.com>, qemu-arm@nongnu.org,\n\tLaine Stump <laine@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,\n\tYongbok Kim <yongbok.kim@imgtec.com>, Alistair Francis\n\t<alistair23@gmail.com>, John Snow <jsnow@redhat.com>, David Gibson\n\t<david@gibson.dropbear.id.au>, qemu-ppc@nongnu.org, Igor Mammedov\n\t<imammedo@redhat.com>, Aurelien Jarno <aurelien@aurel32.net>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1779798,"web_url":"http://patchwork.ozlabs.org/comment/1779798/","msgid":"<20171004130655.GK4760@localhost.localdomain>","list_archive_url":null,"date":"2017-10-04T13:06:55","subject":"Re: [Qemu-devel] xen-pci-passthrough PCI Express support? (Re:\n\t[Xen-devel] [PATCH v2 4/5] pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE\n\tto Conventional PCI devices)","submitter":{"id":195,"url":"http://patchwork.ozlabs.org/api/people/195/","name":"Eduardo Habkost","email":"ehabkost@redhat.com"},"content":"On Wed, Oct 04, 2017 at 03:08:15AM -0600, Jan Beulich wrote:\n> >>> On 03.10.17 at 02:12, <ehabkost@redhat.com> wrote:\n> > On Thu, Sep 28, 2017 at 10:12:34AM -0300, Eduardo Habkost wrote:\n> >> On Thu, Sep 28, 2017 at 02:33:57AM -0600, Jan Beulich wrote:\n> >> > >>> On 27.09.17 at 21:56, <ehabkost@redhat.com> wrote:\n> >> > > --- a/hw/xen/xen_pt.c\n> >> > > +++ b/hw/xen/xen_pt.c\n> >> > > @@ -964,6 +964,10 @@ static const TypeInfo xen_pci_passthrough_info = {\n> >> > >      .instance_size = sizeof(XenPCIPassthroughState),\n> >> > >      .instance_finalize = xen_pci_passthrough_finalize,\n> >> > >      .class_init = xen_pci_passthrough_class_init,\n> >> > > +    .interfaces = (InterfaceInfo[]) {\n> >> > > +        { INTERFACE_CONVENTIONAL_PCI_DEVICE },\n> >> > > +        { },\n> >> > > +    },\n> >> > >  };\n> >> > \n> >> > Passed through devices can be both PCI and PCIe, so following\n> >> > the description of the patch I don't think these can be statically\n> >> > given either property. Granted quite a bit of PCIe specific\n> >> > functionality may be missing in the Xen code ...\n> >> \n> >> This is just static data about what the device type supports, not\n> >> about what a given device instance really is.  Deciding if the\n> >> device is PCIe or Conventional at runtime is out of the scope of\n> >> this series.\n> >> \n> >> That said, if passed through PCI Express devices are really\n> >> supported, it looks like this should be marked as hybrid.\n> > \n> > Can anybody confirm if PCI Express devices are really supported\n> > by xen-pci-passthrough?\n> \n> I think I've clearly said they're supported, with some limitations.\n\nSorry, thanks.  I thought the possible missing PCIe functionality\ncould mean the device couldn't appear as PCI Express to the\nguest.\n\nI will submit a follow-up patch adding INTERFACE_PCIE_DEVICE to\nxen-pci-passthrough.","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ext-mx06.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx06.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=ehabkost@redhat.com"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y6bmx5V8jz9t2h\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  5 Oct 2017 00:08:17 +1100 (AEDT)","from localhost ([::1]:35144 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dzjPL-0001Fe-P1\n\tfor incoming@patchwork.ozlabs.org; Wed, 04 Oct 2017 09:08:15 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:42322)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <ehabkost@redhat.com>) id 1dzjOq-0001FW-Po\n\tfor qemu-devel@nongnu.org; Wed, 04 Oct 2017 09:07:47 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <ehabkost@redhat.com>) id 1dzjOl-00061V-10\n\tfor qemu-devel@nongnu.org; Wed, 04 Oct 2017 09:07:44 -0400","from mx1.redhat.com ([209.132.183.28]:42886)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <ehabkost@redhat.com>)\n\tid 1dzjOV-0005lg-Cm; Wed, 04 Oct 2017 09:07:23 -0400","from smtp.corp.redhat.com\n\t(int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id ED9AF356FC;\n\tWed,  4 Oct 2017 13:07:21 +0000 (UTC)","from localhost (ovpn-116-35.gru2.redhat.com [10.97.116.35])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id C23E15C8B3;\n\tWed,  4 Oct 2017 13:06:57 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com ED9AF356FC","Date":"Wed, 4 Oct 2017 10:06:55 -0300","From":"Eduardo Habkost <ehabkost@redhat.com>","To":"Jan Beulich <JBeulich@suse.com>","Message-ID":"<20171004130655.GK4760@localhost.localdomain>","References":"<20170927195635.16014-1-ehabkost@redhat.com>\n\t<20170927195635.16014-5-ehabkost@redhat.com>\n\t<59CCD0150200007800180507@prv-mh.provo.novell.com>\n\t<20170928131234.GP4115@localhost.localdomain>\n\t<20171003001257.GA7087@localhost.localdomain>\n\t<59D4C11F0200007800181F48@prv-mh.provo.novell.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<59D4C11F0200007800181F48@prv-mh.provo.novell.com>","X-Fnord":"you can see the fnord","User-Agent":"Mutt/1.8.3 (2017-05-23)","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.16","X-Greylist":"Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.30]);\n\tWed, 04 Oct 2017 13:07:22 +0000 (UTC)","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"209.132.183.28","Subject":"Re: [Qemu-devel] xen-pci-passthrough PCI Express support? (Re:\n\t[Xen-devel] [PATCH v2 4/5] pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE\n\tto Conventional PCI devices)","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, \"Michael S. Tsirkin\"\n\t<mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Mark Cave-Ayland\n\t<mark.cave-ayland@ilande.co.uk>, qemu-devel@nongnu.org,\n\tGerd Hoffmann <kraxel@redhat.com>, David Gibson <dgibson@redhat.com>,\n\tJiri Slaby <jslaby@suse.cz>, \tHannes Reinecke <hare@suse.com>,\n\tStefano Stabellini <sstabellini@kernel.org>, \n\tAlberto Garcia <berto@igalia.com>, qemu-block@nongnu.org, \n\tAlexander Graf <agraf@suse.de>, =?iso-8859-1?q?Herv=E9?=\n\tPoussineau <hpoussin@reactos.org>, Anthony Perard\n\t<anthony.perard@citrix.com>, xen-devel@lists.xenproject.org, Richard\n\tHenderson <rth@twiddle.net>, Artyom Tarasenko <atar4qemu@gmail.com>,\n\tJiri Pirko <jiri@resnulli.us>, \tMarcel Apfelbaum <marcel@redhat.com>,\n\tAlex Williamson <alex.williamson@redhat.com>, qemu-arm@nongnu.org,\n\tLaine Stump <laine@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,\n\tYongbok Kim <yongbok.kim@imgtec.com>, Alistair Francis\n\t<alistair23@gmail.com>, John Snow <jsnow@redhat.com>, David Gibson\n\t<david@gibson.dropbear.id.au>, qemu-ppc@nongnu.org, Igor Mammedov\n\t<imammedo@redhat.com>, Aurelien Jarno <aurelien@aurel32.net>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}}]