Received: from eggs.gnu.org ([2001:4830:134:3::10]:35914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNfDp-0001hw-Qh for qemu-devel@nongnu.org; Fri, 07 Aug 2015 06:49:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNfDk-000864-Jj for qemu-devel@nongnu.org; Fri, 07 Aug 2015 06:49:57 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:56728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNfDk-000842-8r for qemu-devel@nongnu.org; Fri, 07 Aug 2015 06:49:52 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Aug 2015 11:49:48 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id B40A91B08067 for ; Fri, 7 Aug 2015 11:51:09 +0100 (BST) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t77AnjE021561374 for ; Fri, 7 Aug 2015 10:49:45 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t77AnjPY025319 for ; Fri, 7 Aug 2015 04:49:45 -0600 Date: Fri, 7 Aug 2015 12:49:42 +0200 From: Cornelia Huck Message-ID: <20150807124942.6c127a6b.cornelia.huck@de.ibm.com> In-Reply-To: <55C43D17.6010902@redhat.com> References: <20150807012346-mutt-send-email-mst@redhat.com> <55C43D17.6010902@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 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. > > > > > 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?