Received: from eggs.gnu.org ([2001:4830:134:3::10]:51995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPsJk-0000YJ-IT for qemu-devel@nongnu.org; Wed, 20 Jul 2016 10:17:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPsJg-0007n8-Qo for qemu-devel@nongnu.org; Wed, 20 Jul 2016 10:17:44 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:10390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPsJg-0007my-H4 for qemu-devel@nongnu.org; Wed, 20 Jul 2016 10:17:40 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u6KEDc3q027893 for ; Wed, 20 Jul 2016 10:17:39 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 2495rb1n4h-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 20 Jul 2016 10:17:39 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 20 Jul 2016 15:17:36 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id A5AF31B08076 for ; Wed, 20 Jul 2016 15:18:52 +0100 (BST) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u6KEHSEX38076494 for ; Wed, 20 Jul 2016 14:17:28 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u6KEHRSt009297 for ; Wed, 20 Jul 2016 08:17:28 -0600 From: Cornelia Huck Date: Wed, 20 Jul 2016 16:17:23 +0200 In-Reply-To: <20160720141725.20025-1-cornelia.huck@de.ibm.com> References: <20160720141725.20025-1-cornelia.huck@de.ibm.com> Message-Id: <20160720141725.20025-2-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PULL 1/3] s390x/css: copy CCW format bit from ORB to SCSW List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: borntraeger@de.ibm.com, agraf@suse.de, jfrei@linux.vnet.ibm.com, qemu-devel@nongnu.org, Sascha Silbe , Cornelia Huck From: Sascha Silbe The CCW Format (F) flag of the Subchannel-Status Word (SCSW) indicates the format of the CCWs "associated with an I/O operation", i.e. the value of CCW-Format Control (F) bit of the Operation-Request Block (ORB). Copy the CCW format bit from the ORB to the SCSW so we correctly indicate the format of the CCWs to the guest. Signed-off-by: Sascha Silbe Reviewed-by: Halil Pasic Signed-off-by: Cornelia Huck --- hw/s390x/css.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/s390x/css.c b/hw/s390x/css.c index aa61773..9e98f50 100644 --- a/hw/s390x/css.c +++ b/hw/s390x/css.c @@ -524,6 +524,7 @@ static void sch_handle_start_func(SubchDev *sch, ORB *orb) return; } sch->ccw_fmt_1 = !!(orb->ctrl0 & ORB_CTRL0_MASK_FMT); + s->flags |= (sch->ccw_fmt_1) ? SCSW_FLAGS_MASK_FMT : 0; sch->ccw_no_data_cnt = 0; suspend_allowed = !!(orb->ctrl0 & ORB_CTRL0_MASK_SPND); } else { -- 2.9.2