From 391354f126afde449d679db67a7c6b64afdca0f9 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Wed, 1 Jul 2009 23:06:19 +0100 Subject: [PATCH] Unregister savevm callback in eeprom93xx_free() 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 Signed-off-by: Anthony Liguori --- hw/eeprom93xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/eeprom93xx.c b/hw/eeprom93xx.c index f91b0c99c0..cf778b7410 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); } -- 2.11.4.GIT