Received: from eggs.gnu.org ([2001:4830:134:3::10]:42513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBp2N-000180-FQ for qemu-devel@nongnu.org; Fri, 07 Feb 2014 12:16:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBp2A-0005iw-0N for qemu-devel@nongnu.org; Fri, 07 Feb 2014 12:16:23 -0500 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:49377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBp29-0005ic-Mu for qemu-devel@nongnu.org; Fri, 07 Feb 2014 12:16:09 -0500 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Feb 2014 17:16:09 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 31A4D2190063 for ; Fri, 7 Feb 2014 17:16:04 +0000 (GMT) Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by b06cxnps4075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s17HFstU66519112 for ; Fri, 7 Feb 2014 17:15:54 GMT Received: from d06av12.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s17HG5QV003578 for ; Fri, 7 Feb 2014 10:16:05 -0700 From: Christian Borntraeger Date: Fri, 7 Feb 2014 18:16:18 +0100 Message-Id: <1391793385-46694-10-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1391793385-46694-1-git-send-email-borntraeger@de.ibm.com> References: <1391793385-46694-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [Patch/RFC 09/16] s390x/eventfacility: mask out commands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Heinz Graalfs , Thomas Huth , Alexander Graf , Dominik Dingel , Christian Borntraeger , Jens Freimann , Paolo Bonzini , Richard Henderson As a followup to commit 5f04c14a10fa7f259bc0808f35a0beda49f7821e (s390-sclp: Define New SCLP Codes) we should mask the sclp command not only in base sclp, but also in the event facility. Based on an initial patch from Ralf Hoppe. Signed-off-by: Christian Borntraeger --- hw/s390x/event-facility.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/s390x/event-facility.c b/hw/s390x/event-facility.c index a73c0b9..1e8c99a 100644 --- a/hw/s390x/event-facility.c +++ b/hw/s390x/event-facility.c @@ -299,7 +299,7 @@ static const TypeInfo s390_sclp_events_bus_info = { static void command_handler(SCLPEventFacility *ef, SCCB *sccb, uint64_t code) { - switch (code) { + switch (code & SCLP_CMD_CODE_MASK) { case SCLP_CMD_READ_EVENT_DATA: read_event_data(ef, sccb); break; -- 1.8.4.2