Received: from eggs.gnu.org ([2001:4830:134:3::10]:42758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkVhD-0000XM-7O for qemu-devel@nongnu.org; Thu, 06 Jun 2013 04:37:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkVhA-0005Kn-Da for qemu-devel@nongnu.org; Thu, 06 Jun 2013 04:37:23 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:58278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkVhA-0005G6-4q for qemu-devel@nongnu.org; Thu, 06 Jun 2013 04:37:20 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 6 Jun 2013 09:32:51 +0100 From: Cornelia Huck Date: Thu, 6 Jun 2013 10:37:10 +0200 Message-Id: <1370507831-13332-2-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1370507831-13332-1-git-send-email-cornelia.huck@de.ibm.com> References: <1370507831-13332-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PATCH 1/2] s390x/css: Fix concurrent sense. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: qemu-stable@nongnu.org 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