Received: from eggs.gnu.org ([2001:4830:134:3::10]:35769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukrlw-0003RG-Ip for qemu-devel@nongnu.org; Fri, 07 Jun 2013 04:11:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ukrls-0006Qh-Ay for qemu-devel@nongnu.org; Fri, 07 Jun 2013 04:11:44 -0400 Received: from e06smtp18.uk.ibm.com ([195.75.94.114]:54860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukrls-0006QJ-0I for qemu-devel@nongnu.org; Fri, 07 Jun 2013 04:11:40 -0400 Received: from /spool/local by e06smtp18.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Jun 2013 09:06:44 +0100 From: Cornelia Huck Date: Fri, 7 Jun 2013 10:11:15 +0200 Message-Id: <1370592676-22532-2-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1370592676-22532-1-git-send-email-cornelia.huck@de.ibm.com> References: <1370592676-22532-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PULL 1/2] s390x/css: Fix concurrent sense. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Blue Swirl , Cornelia Huck , Anthony Liguori , qemu-stable@nongnu.org, =?UTF-8?q?Aur=C3=A9lien=20Jarno?= Fix an off-by-one error when indicating availablity of concurrent sense data. Cc: qemu-stable@nongnu.org Signed-off-by: Cornelia Huck --- hw/s390x/css.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/s390x/css.c b/hw/s390x/css.c index e526a1c..f82abfe 100644 --- a/hw/s390x/css.c +++ b/hw/s390x/css.c @@ -777,7 +777,7 @@ int css_do_tsch(SubchDev *sch, IRB *target_irb) (p->chars & PMCW_CHARS_MASK_CSENSE)) { irb.scsw.flags |= SCSW_FLAGS_MASK_ESWF | SCSW_FLAGS_MASK_ECTL; memcpy(irb.ecw, sch->sense_data, sizeof(sch->sense_data)); - irb.esw[1] = 0x02000000 | (sizeof(sch->sense_data) << 8); + irb.esw[1] = 0x01000000 | (sizeof(sch->sense_data) << 8); } } /* Store the irb to the guest. */ -- 1.7.9.5