From: Mark McLoughlin Date: Wed, 1 Jul 2009 22:06:19 +0000 (+0100) Subject: Unregister savevm callback in eeprom93xx_free() X-Git-Tag: v0.10.6~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51224c6f783ad0f711d69068ce8e0a3e60deb032;p=thirdparty%2Fqemu.git 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 --- diff --git a/hw/eeprom93xx.c b/hw/eeprom93xx.c index 896cffd441e..6de970adfec 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); }