Received: from eggs.gnu.org ([2001:4830:134:3::10]:41378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOp4K-0006fS-KB for qemu-devel@nongnu.org; Mon, 10 Aug 2015 11:32:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOp4H-0002cZ-7O for qemu-devel@nongnu.org; Mon, 10 Aug 2015 11:32:56 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:57574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOp4G-0002bp-VN for qemu-devel@nongnu.org; Mon, 10 Aug 2015 11:32:53 -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, 10 Aug 2015 16:32:50 +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 8E65717D805D for ; Mon, 10 Aug 2015 16:34:19 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t7AFWlZa32636960 for ; Mon, 10 Aug 2015 15:32:47 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t7AFWlgq004474 for ; Mon, 10 Aug 2015 09:32:47 -0600 Date: Mon, 10 Aug 2015 17:32:45 +0200 From: Cornelia Huck Message-ID: <20150810173245.3d7aec37.cornelia.huck@de.ibm.com> In-Reply-To: <55C8430F.90505@redhat.com> References: <20150807012346-mutt-send-email-mst@redhat.com> <55C43D17.6010902@redhat.com> <20150807124942.6c127a6b.cornelia.huck@de.ibm.com> <55C8430F.90505@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] virtio 1 issues List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: qemu-devel@nongnu.org, "Michael S. Tsirkin" On Mon, 10 Aug 2015 14:22:07 +0800 Jason Wang wrote: > > > On 08/07/2015 06:49 PM, Cornelia Huck wrote: > > On Fri, 07 Aug 2015 13:07:35 +0800 > > Jason Wang wrote: > > > >>> 2. ring resizing is broken - it actually has a comment: > >>> /* TODO: need a way to put num back on reset. */ > >>> guest that runs out of memory might down-size the ring. > >>> Afterwards, ring size won't come back up after reset - not nice. > >>> > >> Then we need a new field to keep track the original queue size and > >> migrate this. > > virtio-ccw neatly sidesteps it by not implementing ring size changes at > > all :) > > > > But it isn't really all good, see > > > > /* TODO: Add interface to handle vring.num changing */ > > > > We either need to implement this or fence off changing the ring size, I > > guess. > > Yes. > > >>> Given that the modern layout is disabled by default, > >>> I don't think these are release blockers. > >>> > >> Yes and looks like we need a new subsection and transport specific > >> callbacks to fix above? > > Agreed, it's not urgent as virtio-1 is not yet the default (and not > > even enabled for ccw). > > > > I'm not sure we need transport-specific callbacks. Shouldn't the core > > be able to track initial and actual size (and migrate in an optional > > subsection), as long as the transports use defined interfaces to > > interact with it? > > > > For size, I agree it should be tracked by core. But we need also track > transport specific data like dfselect/gfselect for pci. Yup. I'll leave pci data to the pci folks :) I have a patch for handling the size; I'll post it after I've tested it a bit.