From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7MD8-00053L-6a for qemu-devel@nongnu.org; Tue, 23 Jun 2015 07:17:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7MD5-0002vD-0D for qemu-devel@nongnu.org; Tue, 23 Jun 2015 07:17:50 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:53721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7MD4-0002uq-MA for qemu-devel@nongnu.org; Tue, 23 Jun 2015 07:17:46 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 23 Jun 2015 12:17:44 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 9434617D8059 for ; Tue, 23 Jun 2015 12:18:49 +0100 (BST) Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t5NBHf2K37355584 for ; Tue, 23 Jun 2015 11:17:41 GMT Received: from d06av12.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t5NBHe8Y017842 for ; Tue, 23 Jun 2015 05:17:41 -0600 From: Cornelia Huck Date: Tue, 23 Jun 2015 13:17:36 +0200 Message-Id: <1435058256-11838-5-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1435058256-11838-1-git-send-email-cornelia.huck@de.ibm.com> References: <1435058256-11838-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PATCH 4/4] s390x/virtio-ccw: enable virtio 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mst@redhat.com Cc: Cornelia Huck , qemu-devel@nongnu.org virtio-ccw should now have everything in place to operate virtio 1.0 devices, so let's enable revision 1. Signed-off-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin --- hw/s390x/virtio-ccw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/s390x/virtio-ccw.h b/hw/s390x/virtio-ccw.h index 692ddd7..2c31399 100644 --- a/hw/s390x/virtio-ccw.h +++ b/hw/s390x/virtio-ccw.h @@ -104,7 +104,7 @@ struct VirtioCcwDevice { /* The maximum virtio revision we support. */ static inline int virtio_ccw_rev_max(VirtIODevice *vdev) { - return 0; + return vdev->host_features & (1ULL << VIRTIO_F_VERSION_1) ? 1 : 0; } /* virtual css bus type */ -- 2.3.8