Received: from eggs.gnu.org ([2001:4830:134:3::10]:48965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEX2W-0007rS-Al for qemu-devel@nongnu.org; Mon, 13 Jul 2015 02:16:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEX2R-00007p-Au for qemu-devel@nongnu.org; Mon, 13 Jul 2015 02:16:32 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:57768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEX2R-00007l-0q for qemu-devel@nongnu.org; Mon, 13 Jul 2015 02:16:27 -0400 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 13 Jul 2015 07:16:23 +0100 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 726AA17D8062 for ; Mon, 13 Jul 2015 07:17:39 +0100 (BST) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t6D6GKva33554434 for ; Mon, 13 Jul 2015 06:16:21 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t6D6GKN9003266 for ; Mon, 13 Jul 2015 00:16:20 -0600 Date: Mon, 13 Jul 2015 08:16:17 +0200 From: Cornelia Huck Message-ID: <20150713081617.2898650f.cornelia.huck@de.ibm.com> In-Reply-To: <1436766411-29144-4-git-send-email-jasowang@redhat.com> References: <1436766411-29144-1-git-send-email-jasowang@redhat.com> <1436766411-29144-4-git-send-email-jasowang@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/5] Revert "virtio-net: enable virtio 1.0" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: qemu-devel@nongnu.org, mst@redhat.com On Mon, 13 Jul 2015 13:46:50 +0800 Jason Wang wrote: > This reverts commit df91055db5c9cee93d70ca8c08d72119a240b987. > > This is because: > - vhost support virtio 1.0 now > - transport code (e.g virtio-pci) set this feature when modern is > enabled, setting this unconditionally will break disable-modern=on. *scratches head* Why is transport code now supposed to set VERSION_1? I thought we wanted to have the individual devices offer it, once they are converted. No objection on removing the dependency on !vhost. > > Cc: Cornelia Huck > Signed-off-by: Jason Wang > --- > hw/net/virtio-net.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c > index d728233..e3c2db3 100644 > --- a/hw/net/virtio-net.c > +++ b/hw/net/virtio-net.c > @@ -466,7 +466,6 @@ 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);