acpi-build: enable hotplug for PCI bridges
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 14 Oct 2013 15:01:29 +0000 (18:01 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 26 Jan 2014 11:11:44 +0000 (13:11 +0200)
commit99fd437dee468609de8218f0eb3b16621fb6a9c9
treef821c2630c56db3b8260173036c7206c7d171d31
parent9e047b982452c633882b486682966c1d97097015
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