From c81b4f896f2768a34d6e65e5f3e588515b10f631 Mon Sep 17 00:00:00 2001 From: Song Shan Gong Date: Tue, 19 Jan 2016 02:55:00 +0100 Subject: 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 Reviewed-by: Cornelia Huck Signed-off-by: Cornelia Huck --- target-s390x/ioinst.c | 1 + 1 file changed, 1 insertion(+) (limited to 'target-s390x/ioinst.c') diff --git a/target-s390x/ioinst.c b/target-s390x/ioinst.c index 57c2d8b226..9a8de6d122 100644 --- a/target-s390x/ioinst.c +++ b/target-s390x/ioinst.c @@ -614,6 +614,7 @@ static void ioinst_handle_chsc_sei(ChscReq *req, ChscResp *res) (*res_flags) |= 0x80; } else { (*res_flags) &= ~0x80; + css_clear_sei_pending(); } } else { res->code = cpu_to_be16(0x0005); -- cgit v1.2.3