From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yk7bi-0002CE-6O for qemu-devel@nongnu.org; Mon, 20 Apr 2015 05:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yk7bc-0003Br-5V for qemu-devel@nongnu.org; Mon, 20 Apr 2015 05:03:10 -0400 Received: from mail-ig0-f176.google.com ([209.85.213.176]:35532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yk7bc-0003Bn-0q for qemu-devel@nongnu.org; Mon, 20 Apr 2015 05:03:04 -0400 Received: by igbyr2 with SMTP id yr2so53941488igb.0 for ; Mon, 20 Apr 2015 02:03:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20150420105411.75944c6d.cornelia.huck@de.ibm.com> References: <1429272826-4145-1-git-send-email-shannon.zhao@linaro.org> <20150417154335.7fa224ce.cornelia.huck@de.ibm.com> <20150420105411.75944c6d.cornelia.huck@de.ibm.com> From: Peter Maydell Date: Mon, 20 Apr 2015 10:02:43 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 0/4] virtio: Move host features to backends List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck Cc: "Michael S. Tsirkin" , "Huangpeng (Peter)" , QEMU Developers , Shannon Zhao , Shannon Zhao , Paolo Bonzini , Christoffer Dall On 20 April 2015 at 09:54, Cornelia Huck wrote: > The reason why blk is ok is that it adds the feature bits in its > ->get_features() callback. net expects the feature bits already present > and removes not supported ones and therefore requires > statically-defined bits somewhere. > > If we move the feature bits to virtio-net and virtio-scsi, it should > work for virtio-mmio - but the feature bit propagation from the device > into the transport becomes a bit useless. > > Could net and scsi add the feature bits dynamically in their > ->get_features() callback instead? This should work for virtio-mmio as > well afaics. I think this is what Shannon's v2 patchset just posted does -- could you check that it doesn't break s390 by accident? > In the end, we should probably end up with the same mechanism for all > device types. Definitely agreed. I suspect we just missed the net and scsi devices because getting this wrong doesn't make virtio-mmio totally unusable... thanks -- PMM