]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/ppc/spapr.h
spapr_events: re-use EPOW event infrastructure for hotplug events
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Thu, 7 May 2015 05:33:49 +0000 (15:33 +1000)
committerAlexander Graf <agraf@suse.de>
Wed, 3 Jun 2015 21:56:53 +0000 (23:56 +0200)
commit31fe14d15d08d613ff38abb249911e98c7966b86
treec362e3f79500fd1b9137920800536e452c611332
parent46503c2bc047bfe8c26440e17298fcbc59d7bbbe
spapr_events: re-use EPOW event infrastructure for hotplug events

This extends the data structures currently used to report EPOW events to
guests via the check-exception RTAS interfaces to also include event types
for hotplug/unplug events.

This is currently undocumented and being finalized for inclusion in PAPR
specification, but we implement this here as an extension for guest
userspace tools to implement (existing guest kernels simply log these
events via a sysfs interface that's read by rtas_errd, and current
versions of rtas_errd/powerpc-utils already support the use of this
mechanism for initiating hotplug operations).

We also add support for queues of pending RTAS events, since in the
case of hotplug there's chance for multiple events being in-flight
at any point in time.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c
hw/ppc/spapr_events.c
include/hw/ppc/spapr.h