Received: from eggs.gnu.org ([208.118.235.92]:38722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHYTG-0004MN-Mk for qemu-devel@nongnu.org; Mon, 18 Mar 2013 07:43:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHYTA-0004ls-Qh for qemu-devel@nongnu.org; Mon, 18 Mar 2013 07:43:18 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:38554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHYTA-0004jk-1t for qemu-devel@nongnu.org; Mon, 18 Mar 2013 07:43:12 -0400 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 18 Mar 2013 11:40:20 -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 3C2C017D8018 for ; Mon, 18 Mar 2013 11:43:44 +0000 (GMT) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2IBgr2d57147486 for ; Mon, 18 Mar 2013 11:42:53 GMT Received: from d06av08.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2IBh23m028959 for ; Mon, 18 Mar 2013 05:43:02 -0600 From: Cornelia Huck Date: Mon, 18 Mar 2013 12:42:59 +0100 Message-Id: <1363606979-13252-3-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1363606979-13252-1-git-send-email-cornelia.huck@de.ibm.com> References: <1363606979-13252-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PATCH 2/2] 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. CC: 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 d9b7f83..18f1292 100644 --- a/hw/s390x/s390-virtio-bus.c +++ b/hw/s390x/s390-virtio-bus.c @@ -434,6 +434,7 @@ static Property s390_virtio_blk_properties[] = { #ifdef __linux__ DEFINE_PROP_BIT("scsi", VirtIOS390Device, blk.scsi, 0, true), #endif + DEFINE_PROP_BIT("config-wce", VirtIOS390Device, 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 70aba41..5795bdd 100644 --- a/hw/s390x/virtio-ccw.c +++ b/hw/s390x/virtio-ccw.c @@ -761,6 +761,7 @@ static Property virtio_ccw_blk_properties[] = { DEFINE_PROP_BIT("scsi", VirtioCcwDevice, blk.scsi, 0, true), #endif DEFINE_VIRTIO_BLK_FEATURES(VirtioCcwDevice, host_features[0]), + DEFINE_PROP_BIT("config-wce", VirtioCcwDevice, blk.config_wce, 0, true), DEFINE_PROP_END_OF_LIST(), }; -- 1.7.9.5