diff options
author | Song Shan Gong | 2016-01-19 02:55:00 +0100 |
---|---|---|
committer | Cornelia Huck | 2016-01-27 15:34:47 +0100 |
commit | c81b4f896f2768a34d6e65e5f3e588515b10f631 (patch) | |
tree | aa5013c5420be6aa91db3e1489a2dc68e5cff91b /hw/s390x/css.h | |
parent | s390x/ioinst: set type and len for SEI response (diff) | |
download | qemu-c81b4f896f2768a34d6e65e5f3e588515b10f631.tar.gz qemu-c81b4f896f2768a34d6e65e5f3e588515b10f631.tar.xz qemu-c81b4f896f2768a34d6e65e5f3e588515b10f631.zip |
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>
Diffstat (limited to 'hw/s390x/css.h')
-rw-r--r-- | hw/s390x/css.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/s390x/css.h b/hw/s390x/css.h index a09bb1f87c..a47937dee5 100644 --- a/hw/s390x/css.h +++ b/hw/s390x/css.h @@ -103,6 +103,7 @@ void css_generate_sch_crws(uint8_t cssid, uint8_t ssid, uint16_t schid, int hotplugged, int add); void css_generate_chp_crws(uint8_t cssid, uint8_t chpid); void css_generate_css_crws(uint8_t cssid); +void css_clear_sei_pending(void); void css_adapter_interrupt(uint8_t isc); #define CSS_IO_ADAPTER_VIRTIO 1 |