hw/pci-bridge: introduce "shpc" property
commit4e5c9bfecf5da13e8e0f790002a55bb1cc0437b1
authorLaszlo Ersek <lersek@redhat.com>
Fri, 19 Jun 2015 02:40:13 +0000 (19 04:40 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 23 Jun 2015 20:57:48 +0000 (23 22:57 +0200)
treee5029a19da9685432021c398e238506f51933258
parent23ab143dcce8d7f758eb6946ebf68d8689018a9c
hw/pci-bridge: introduce "shpc" property

In the PCI expander bridge, we will want to disable those features of
pci-bridge that relate to SHPC (standard hotplug controller):

- SHPC bar and underlying MemoryRegion
- interrupt (INTx or MSI)
- effective hotplug callbacks
- other SHPC hooks (initialization, cleanup, migration etc)

Introduce a new feature request bit in the PCIBridgeDev.flags field, and
turn off the above if the bit is explicitly cleared.

Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Marcel Apfelbaum <marcel@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-bridge/pci_bridge_dev.c
include/hw/pci/pci_bridge.h