Received: from eggs.gnu.org ([140.186.70.92]:55179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmN2U-00027W-A5 for qemu-devel@nongnu.org; Thu, 28 Jul 2011 05:37:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmN2S-0002vk-Ue for qemu-devel@nongnu.org; Thu, 28 Jul 2011 05:37:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmN2S-0002vd-Bo for qemu-devel@nongnu.org; Thu, 28 Jul 2011 05:37:56 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6S9bt7a027458 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 28 Jul 2011 05:37:55 -0400 Date: Thu, 28 Jul 2011 15:07:52 +0530 From: Amit Shah Message-ID: <20110728093752.GE7106@amit-x200.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2 5/5] virtio-balloon: Unregister savevm section on device unplug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu list , "Michael S. Tsirkin" On (Thu) 28 Jul 2011 [09:45:44], Markus Armbruster wrote: > Amit Shah writes: > > > Migrating after unplugging a virtio-balloon device resulted in an error > > message on the destination: > > > > Unknown savevm section or instance '0000:00:04.0/virtio-balloon' 0 > > load of migration failed > > > > Fix this by unregistering the section on device unplug. > > > > Signed-off-by: Amit Shah > > --- > > hw/virtio-balloon.c | 4 ++++ > > 1 files changed, 4 insertions(+), 0 deletions(-) > > > > diff --git a/hw/virtio-balloon.c b/hw/virtio-balloon.c > > index 0ce0049..072a88a 100644 > > --- a/hw/virtio-balloon.c > > +++ b/hw/virtio-balloon.c > > @@ -45,6 +45,7 @@ typedef struct VirtIOBalloon > > size_t stats_vq_offset; > > MonitorCompletion *stats_callback; > > void *stats_opaque_callback_data; > > + DeviceState *qdev; > > } VirtIOBalloon; > > All the other virtio device structs already have such a pointer back to > the proxy. Suggests that it should live in VirtIODevice, and be set up > in generic code. Again, outside the scope of this series. > > I hate the virtio pointer thicket. Yep :-( Amit