mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
s390/sclp: add reset() functions
Add reset() functions for event-facility, sclpconsole, and sclpquiesce. The reset() functions perform variable initialization at IPL and e.g. when monitor system_reset is called. Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com> Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com> Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
This commit is contained in:
parent
7e36b7a356
commit
3af6de321f
3 changed files with 30 additions and 4 deletions
|
@ -105,11 +105,19 @@ static int quiesce_init(SCLPEvent *event)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void quiesce_reset(DeviceState *dev)
|
||||
{
|
||||
SCLPEvent *event = SCLP_EVENT(dev);
|
||||
|
||||
event->event_pending = false;
|
||||
}
|
||||
|
||||
static void quiesce_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
SCLPEventClass *k = SCLP_EVENT_CLASS(klass);
|
||||
|
||||
dc->reset = quiesce_reset;
|
||||
dc->vmsd = &vmstate_sclpquiesce;
|
||||
k->init = quiesce_init;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue