s390: sclp signal quiesce support
commitab9074b559823a22822db9e299198c53169c34ea
authorHeinz Graalfs <graalfs@linux.vnet.ibm.com>
Mon, 29 Oct 2012 02:13:24 +0000 (29 02:13 +0000)
committerAlexander Graf <agraf@suse.de>
Mon, 29 Oct 2012 18:41:56 +0000 (29 19:41 +0100)
tree333d415a0e120152c087279d4bb45db0b6fcd59f
parent559a17a1439e34a95dcab47ef99022bcd0e8f8e7
s390: sclp signal quiesce support

This implements the sclp signal quiesce event via the SCLP Event
Facility.
This allows to gracefully shutdown a guest by using system_powerdown
notifiers. It creates a service interrupt that will trigger a
Read Event Data command from the guest. This code will then add an
event that is interpreted by linux guests as ctrl-alt-del.

Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/s390x/Makefile.objs
hw/s390x/event-facility.c
hw/s390x/sclpquiesce.c [new file with mode: 0644]