Received: from eggs.gnu.org ([208.118.235.92]:59703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIDgh-000591-E9 for qemu-devel@nongnu.org; Wed, 20 Mar 2013 03:43:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIDgf-0002vM-HD for qemu-devel@nongnu.org; Wed, 20 Mar 2013 03:43:55 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:37702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIDgf-0002sr-9m for qemu-devel@nongnu.org; Wed, 20 Mar 2013 03:43:53 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 20 Mar 2013 07:41:39 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id B40BD17D8018 for ; Wed, 20 Mar 2013 07:44:29 +0000 (GMT) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2K7hcnU58065060 for ; Wed, 20 Mar 2013 07:43:38 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost.localdomain [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2K7hlVm024042 for ; Wed, 20 Mar 2013 01:43:47 -0600 From: Cornelia Huck Date: Wed, 20 Mar 2013 08:43:44 +0100 Message-Id: <1363765425-5746-3-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1363765425-5746-1-git-send-email-cornelia.huck@de.ibm.com> References: <1363765425-5746-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PATCH 2/3] s390-virtio, virtio-ccw: Add config_wce for virtio-blk. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Alexander Graf There's no reason why we wouldn't want to make the cache mode configurable. Acked-by: Alexander Graf Signed-off-by: Cornelia Huck --- hw/s390x/s390-virtio-bus.c | 1 + hw/s390x/virtio-ccw.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/s390x/s390-virtio-bus.c b/hw/s390x/s390-virtio-bus.c index 76bc99a..5d55a9d 100644 --- a/hw/s390x/s390-virtio-bus.c +++ b/hw/s390x/s390-virtio-bus.c @@ -441,6 +441,7 @@ static Property s390_virtio_blk_properties[] = { #ifdef __linux__ DEFINE_PROP_BIT("scsi", VirtIOBlkS390, blk.scsi, 0, true), #endif + DEFINE_PROP_BIT("config-wce", VirtIOBlkS390, blk.config_wce, 0, true), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index fc95116..afaf348 100644 --- a/hw/s390x/virtio-ccw.c +++ b/hw/s390x/virtio-ccw.c @@ -762,6 +762,7 @@ static Property virtio_ccw_blk_properties[] = { #ifdef __linux__ DEFINE_PROP_BIT("scsi", VirtIOBlkCcw, blk.scsi, 0, true), #endif + DEFINE_PROP_BIT("config-wce", VirtIOBlkCcw, blk.config_wce, 0, true), DEFINE_VIRTIO_BLK_FEATURES(VirtioCcwDevice, host_features[0]), DEFINE_PROP_END_OF_LIST(), }; -- 1.7.9.5