Received: from eggs.gnu.org ([2001:4830:134:3::10]:45971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP9Ey-0004K3-FV for qemu-devel@nongnu.org; Mon, 18 Jul 2016 10:09:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP9Et-0001Zx-J6 for qemu-devel@nongnu.org; Mon, 18 Jul 2016 10:09:47 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:48329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP9Et-0001Zs-91 for qemu-devel@nongnu.org; Mon, 18 Jul 2016 10:09:43 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u6IE8mV5049434 for ; Mon, 18 Jul 2016 10:09:42 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 24826ysxdh-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 18 Jul 2016 10:09:42 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 18 Jul 2016 15:09:39 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id A526E2190056 for ; Mon, 18 Jul 2016 15:08:49 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u6IE9LeV25428378 for ; Mon, 18 Jul 2016 14:09:21 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u6IE9KoO032029 for ; Mon, 18 Jul 2016 08:09:21 -0600 From: Cornelia Huck Date: Mon, 18 Jul 2016 16:09:11 +0200 In-Reply-To: <20160718140913.6304-1-cornelia.huck@de.ibm.com> References: <20160718140913.6304-1-cornelia.huck@de.ibm.com> Message-Id: <20160718140913.6304-2-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PATCH for-2.7 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: qemu-devel@nongnu.org Cc: borntraeger@de.ibm.com, agraf@suse.de, jfrei@linux.vnet.ibm.com, 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.1