]> git.proxmox.com Git - mirror_qemu.git/commit - hw/sparc64/sun4u.c
pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 27 Sep 2017 19:56:34 +0000 (16:56 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 15 Oct 2017 02:54:43 +0000 (05:54 +0300)
commitfd3b02c8896d597dd8b9e053dec579cf0386aee1
treee46c05a6d4ff122cb74b669f1423555dd1808161
parent71d787677d0cacea846dc851c3e56ad076d59c04
pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices

Add INTERFACE_CONVENTIONAL_PCI_DEVICE to all direct subtypes of
TYPE_PCI_DEVICE, except:

1) The ones that already have INTERFACE_PCIE_DEVICE set:

* base-xhci
* e1000e
* nvme
* pvscsi
* vfio-pci
* virtio-pci
* vmxnet3

2) base-pci-bridge

Not all PCI bridges are Conventional PCI devices, so
INTERFACE_CONVENTIONAL_PCI_DEVICE is added only to the subtypes
that are actually Conventional PCI:

* dec-21154-p2p-bridge
* i82801b11-bridge
* pbm-bridge
* pci-bridge

The direct subtypes of base-pci-bridge not touched by this patch
are:

* xilinx-pcie-root: Already marked as PCIe-only.
* pcie-pci-bridge: Already marked as PCIe-only.
* pcie-port: all non-abstract subtypes of pcie-port are already
  marked as PCIe-only devices.

3) megasas-base

Not all megasas devices are Conventional PCI devices, so the
interface names are added to the subclasses registered by
megasas_register_types(), according to information in the
megasas_devices[] array.

"megasas-gen2" already implements INTERFACE_PCIE_DEVICE, so add
INTERFACE_CONVENTIONAL_PCI_DEVICE only to "megasas".

Acked-by: Alberto Garcia <berto@igalia.com>
Acked-by: John Snow <jsnow@redhat.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
64 files changed:
hw/acpi/piix4.c
hw/audio/ac97.c
hw/audio/es1370.c
hw/audio/intel-hda.c
hw/char/serial-pci.c
hw/display/cirrus_vga.c
hw/display/qxl.c
hw/display/sm501.c
hw/display/vga-pci.c
hw/display/vmware_vga.c
hw/i2c/smbus_ich9.c
hw/i386/amd_iommu.c
hw/i386/kvm/pci-assign.c
hw/i386/pc_piix.c
hw/i386/xen/xen_platform.c
hw/i386/xen/xen_pvdevice.c
hw/ide/ich.c
hw/ide/pci.c
hw/ipack/tpci200.c
hw/isa/i82378.c
hw/isa/lpc_ich9.c
hw/isa/piix4.c
hw/isa/vt82c686.c
hw/mips/gt64xxx_pci.c
hw/misc/edu.c
hw/misc/ivshmem.c
hw/misc/macio/macio.c
hw/misc/pci-testdev.c
hw/net/e1000.c
hw/net/eepro100.c
hw/net/ne2000.c
hw/net/pcnet-pci.c
hw/net/rocker/rocker.c
hw/net/rtl8139.c
hw/net/sungem.c
hw/net/sunhme.c
hw/pci-bridge/dec.c
hw/pci-bridge/i82801b11.c
hw/pci-bridge/pci_bridge_dev.c
hw/pci-bridge/pci_expander_bridge.c
hw/pci-host/apb.c
hw/pci-host/bonito.c
hw/pci-host/gpex.c
hw/pci-host/grackle.c
hw/pci-host/piix.c
hw/pci-host/ppce500.c
hw/pci-host/prep.c
hw/pci-host/q35.c
hw/pci-host/uninorth.c
hw/pci-host/versatile.c
hw/ppc/ppc4xx_pci.c
hw/scsi/esp-pci.c
hw/scsi/lsi53c895a.c
hw/scsi/megasas.c
hw/scsi/mptsas.c
hw/sd/sdhci.c
hw/sh4/sh_pci.c
hw/sparc64/sun4u.c
hw/usb/hcd-ehci-pci.c
hw/usb/hcd-ohci.c
hw/usb/hcd-uhci.c
hw/vfio/pci-quirks.c
hw/watchdog/wdt_i6300esb.c
hw/xen/xen_pt.c