qemu/hw/ppc
David Gibson 74d042e5ce pseries: Implement qemu initiated shutdowns using EPOW events
At present, using 'system_powerdown' from the monitor or otherwise
instructing qemu to (cleanly) shut down a pseries guest will not work,
because we did not have a method of signalling the shutdown request to the
guest.

PAPR does include a usable mechanism for this, though it is rather more
involved than the equivalent on x86.  This involves sending an EPOW
(Environmental and POwer Warning) event through the PAPR event and error
logging mechanism, which also has a number of other functions.

This patch implements just enough of the event/error logging functionality
to be able to send a shutdown event to the guest.  At least with modern
guest kernels and a userspace that is up and running, this means that
system_powerdown from the qemu monitor should now work correctly on pseries
guests.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
2012-10-29 11:45:54 +01:00
..
e500.c e500: Fix serial initialization 2012-10-29 11:45:54 +01:00
e500.h PPC: e500: split mpc8544ds machine from generic e500 code 2012-08-15 19:43:13 +02:00
e500plat.c create struct for machine initialization arguments 2012-10-20 07:53:28 +00:00
Makefile.objs pseries: Implement qemu initiated shutdowns using EPOW events 2012-10-29 11:45:54 +01:00
mpc8544ds.c create struct for machine initialization arguments 2012-10-20 07:53:28 +00:00