From 51224c6f783ad0f711d69068ce8e0a3e60deb032 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 896cffd441..6de970adfe 100644 --- a/hw/eeprom93xx.c +++ b/hw/eeprom93xx.c @@ -301,6 +301,7 @@ void eeprom93xx_free(eeprom_t *eeprom) { /* Destroy EEPROM. */ logout("eeprom = 0x%p\n", eeprom); + unregister_savevm("eeprom", eeprom); qemu_free(eeprom); } -- 2.50.1