Received: from eggs.gnu.org ([2001:4830:134:3::10]:58278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTsVx-0001lj-HK for qemu-devel@nongnu.org; Mon, 24 Aug 2015 10:14:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTsVr-0005Ge-Ty for qemu-devel@nongnu.org; Mon, 24 Aug 2015 10:14:21 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:56558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTsVr-0005Df-JN for qemu-devel@nongnu.org; Mon, 24 Aug 2015 10:14:15 -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, 24 Aug 2015 15:14:10 +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 9831B1B08069 for ; Mon, 24 Aug 2015 15:15:39 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t7OEE84O39977170 for ; Mon, 24 Aug 2015 14:14:08 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 t7OEE7me015981 for ; Mon, 24 Aug 2015 08:14:07 -0600 Date: Mon, 24 Aug 2015 16:14:06 +0200 From: Cornelia Huck Message-ID: <20150824161406.0f49d252.cornelia.huck@de.ibm.com> In-Reply-To: <55DAAD82.5060407@redhat.com> References: <1440147950-1178-1-git-send-email-jasowang@redhat.com> <1440147950-1178-4-git-send-email-jasowang@redhat.com> <20150821114359.7008df9c.cornelia.huck@de.ibm.com> <55DAAD82.5060407@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/6] virtio-pci: fix 1.0 virtqueue migration 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, 24 Aug 2015 13:37:06 +0800 Jason Wang wrote: > On 08/21/2015 05:43 PM, Cornelia Huck wrote: > > On Fri, 21 Aug 2015 17:05:47 +0800 > > Jason Wang wrote: > >> + k->has_modern_state && > >> + k->has_modern_state(qbus->parent); > >> +} > > I don't really like this "modern_state" stuff (which is pci specific) > > creeping into core. > > > > How about introducing "extra_state" and/or "extra_queue_state" (or > > something like that) instead? > > > > Ok, if you don't like pci specific name, maybe something like > "virtio_1_state" is better? I was thinking more along the lines of "transport wants to save/restore additional state for the device" - which is not neccessarily depending on virtio-1. It would be good if a transport can extend the state without needlessly introducing incompatibilities. pci can handle its modern state via this then and encapsulate it.