From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MM7wu-00056R-5p for qemu-devel@nongnu.org; Wed, 01 Jul 2009 18:06:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MM7wp-000516-EC for qemu-devel@nongnu.org; Wed, 01 Jul 2009 18:06:39 -0400 Received: from [199.232.76.173] (port=48423 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM7wp-000510-CR for qemu-devel@nongnu.org; Wed, 01 Jul 2009 18:06:35 -0400 Received: from mx2.redhat.com ([66.187.237.31]:33076) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MM7wo-0003Qp-Qu for qemu-devel@nongnu.org; Wed, 01 Jul 2009 18:06:35 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n61M6Xvk013480 for ; Wed, 1 Jul 2009 18:06:33 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n61M6XRt010254 for ; Wed, 1 Jul 2009 18:06:33 -0400 Received: from [IPv6:::1] (sebastian-int.corp.redhat.com [172.16.52.221]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n61M6W9D024284 for ; Wed, 1 Jul 2009 18:06:32 -0400 From: Mark McLoughlin Content-Type: text/plain Date: Wed, 01 Jul 2009 23:06:19 +0100 Message-Id: <1246485979.598.80.camel@blaa> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] Unregister savevm callback in eeprom93xx_free() Reply-To: Mark McLoughlin List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Otherwise if you hot remove an eepro100 NIC and then migrate, you get: Unknown savevm section or instance 'eeprom' 0 on the destination side. Signed-off-by: Mark McLoughlin --- hw/eeprom93xx.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/eeprom93xx.c b/hw/eeprom93xx.c index f91b0c9..cf778b7 100644 --- a/hw/eeprom93xx.c +++ b/hw/eeprom93xx.c @@ -329,6 +329,7 @@ void eeprom93xx_free(eeprom_t *eeprom) { /* Destroy EEPROM. */ logout("eeprom = 0x%p\n", eeprom); + unregister_savevm("eeprom", eeprom); qemu_free(eeprom); } -- 1.6.2.2