From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcWjF-0005OF-Bq for qemu-devel@nongnu.org; Thu, 17 Sep 2015 06:47:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcWjC-000553-6J for qemu-devel@nongnu.org; Thu, 17 Sep 2015 06:47:49 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:40135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcWjB-00054c-O0 for qemu-devel@nongnu.org; Thu, 17 Sep 2015 06:47:46 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 17 Sep 2015 11:47:44 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 73ED01B08067 for ; Thu, 17 Sep 2015 11:49:24 +0100 (BST) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t8HAlg3F8782038 for ; Thu, 17 Sep 2015 10:47:42 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t8HAlgxV015967 for ; Thu, 17 Sep 2015 04:47:42 -0600 Date: Thu, 17 Sep 2015 12:47:40 +0200 From: Cornelia Huck Message-ID: <20150917124740.680b427b.cornelia.huck@de.ibm.com> In-Reply-To: <20150917123931.11435cf6@bahia.local> References: <20150916175511.6328fceb@bahia.local> <1442480761-20548-1-git-send-email-cornelia.huck@de.ibm.com> <20150917123931.11435cf6@bahia.local> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] virtio: add some migration doc List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz Cc: jasowang@redhat.com, kraxel@redhat.com, qemu-devel@nongnu.org, mst@redhat.com On Thu, 17 Sep 2015 12:39:31 +0200 Greg Kurz wrote: > On Thu, 17 Sep 2015 11:06:01 +0200 > Cornelia Huck wrote: > > +Devices need to be careful in their state processing during load: The > > +load_device() procedure is invoked by the core before subsections have > > +been loaded. Any code that depends on information transmitted in subsections > > +therefore has to be invoked in the device's load() function _after_ > > +virtio_load() returned (like e.g. code depending on features). > > + > > From a VMState standpoint, such code would land in a post-load callback most of > the time. Would that help comprehension if we introduce a virtio_post_load() > function ? It might. I think the main problem is that we need to do some stuff post-load, and it's not really obvious what it is.