]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/s390x/css.h
s390x: fix generation of event information crw
authorSong Shan Gong <gongss@linux.vnet.ibm.com>
Tue, 19 Jan 2016 01:55:00 +0000 (02:55 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 27 Jan 2016 14:34:47 +0000 (15:34 +0100)
commitc81b4f896f2768a34d6e65e5f3e588515b10f631
treeaa5013c5420be6aa91db3e1489a2dc68e5cff91b
parentf70202be535b5601fd02c725dc1d74f3bfc5039c
s390x: fix generation of event information crw

Only one channel report word (crw) may be pending if there is
event-information pending.

This patch introduces a bool-type field 'sei_pending' for the
channel subsystem, which indicates whether there are pending events.
It is set when event information is made pending and the crw
generated, and cleared after the guest has collected all pending
event information. A crw is not generated if this flag had already
been set.

Signed-off-by: Song Shan Gong <gongss@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/css.c
hw/s390x/css.h
target-s390x/ioinst.c