acpi-build: enable hotplug for PCI bridgesfor_autotest_next
commit6c34df519900140cb0cee43e598dbe00d46b4340
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 14 Oct 2013 15:01:29 +0000 (14 18:01 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 21 Nov 2013 14:28:31 +0000 (21 16:28 +0200)
treeae773f943fe5cb8c1680041fe00ef0f2ca5dda4b
parentd75f050cdea9316e8882da13630165e0c3236f69
acpi-build: enable hotplug for PCI bridges

This enables support for device hotplug behind
pci bridges. Bridge devices themselves need
to be pre-configured on qemu command line.

Design:
    - at machine init time, assign "bsel" property to bridges with
      hotplug support
    - dynamically (At ACPI table read) generate ACPI code to handle
      hotplug events for each bridge with "bsel" property

Note: ACPI doesn't support adding or removing bridges by hotplug.
We detect and prevent removal of bridges by hotplug,
unless they were added by hotplug previously
(and so, are not described by ACPI).

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c
hw/i386/acpi-dsdt.dsl
hw/i386/ssdt-pcihp.dsl