Received: from eggs.gnu.org ([140.186.70.92]:55624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmLHw-0008G4-S6 for qemu-devel@nongnu.org; Thu, 28 Jul 2011 03:45:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmLHw-0005TT-0a for qemu-devel@nongnu.org; Thu, 28 Jul 2011 03:45:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmLHv-0005TO-Mj for qemu-devel@nongnu.org; Thu, 28 Jul 2011 03:45:47 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6S7jkBa027217 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 28 Jul 2011 03:45:47 -0400 From: Markus Armbruster References: Date: Thu, 28 Jul 2011 09:45:44 +0200 In-Reply-To: (Amit Shah's message of "Thu, 28 Jul 2011 11:47:16 +0530") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Amit Shah Cc: qemu list , "Michael S. Tsirkin" 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. [...]