spapr: add hotplug interrupt machine options
commitf622921430adbb4ac5aa641534e13e2cafae099a
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 27 Oct 2016 02:20:27 +0000 (26 21:20 -0500)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 28 Oct 2016 00:17:35 +0000 (28 11:17 +1100)
tree7dbb2d7f6afcbae5e7e82558430e2f0595288151
parentffbb1705a33df8e2fb12b24d96663d63b22eaf8b
spapr: add hotplug interrupt machine options

This adds machine options of the form:

  -machine pseries,modern-hotplug-events=true
  -machine pseries,modern-hotplug-events=false

If false, QEMU will force the use of "legacy" style hotplug events,
which are surfaced through EPOW events instead of a dedicated
hot plug event source, and lack certain features necessary, mainly,
for memory unplug support.

If true, QEMU will enable support for "modern" dedicated hot plug
event source. Note that we will still default to "legacy" style unless
the guest advertises support for the "modern" hotplug events via
ibm,client-architecture-support hcall during early boot.

For pseries-2.7 and earlier we default to false, for newer machine
types we default to true.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c