Received: from eggs.gnu.org ([2001:4830:134:3::10]:50163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3182-0007AX-6p for qemu-devel@nongnu.org; Thu, 11 Jun 2015 07:58:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z317y-0006Ux-SB for qemu-devel@nongnu.org; Thu, 11 Jun 2015 07:58:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z317y-0006Uq-Na for qemu-devel@nongnu.org; Thu, 11 Jun 2015 07:58:34 -0400 Date: Thu, 11 Jun 2015 13:58:31 +0200 From: "Michael S. Tsirkin" Message-ID: <1434023714-30366-10-git-send-email-mst@redhat.com> References: <1434023714-30366-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434023714-30366-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 09/42] virtio-net: enable virtio 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Cornelia Huck , Peter Maydell From: Cornelia Huck virtio-net (non-vhost) now should have everything in place to support virtio 1.0: let's enable the feature bit for it. Note that VIRTIO_F_VERSION_1 is technically a transport feature; once every device is ready for virtio 1.0, we can move setting this feature bit out of the individual devices. Signed-off-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Michael S. Tsirkin --- hw/net/virtio-net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index a01c4d1..49fa13f 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -470,6 +470,7 @@ static uint64_t virtio_net_get_features(VirtIODevice *vdev, uint64_t features) } if (!get_vhost_net(nc->peer)) { + virtio_add_feature(&features, VIRTIO_F_VERSION_1); return features; } return vhost_net_get_features(get_vhost_net(nc->peer), features); -- MST