Unregister savevm callback in eeprom93xx_free()
authorMark McLoughlin <markmc@redhat.com>
Wed, 1 Jul 2009 22:06:19 +0000 (23:06 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 9 Jul 2009 21:58:08 +0000 (16:58 -0500)
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 <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/eeprom93xx.c

index f91b0c99c0ec0c0f4ecc5e4bd077e16321f32096..cf778b74102a9cd9e4b943f0c0362b461859945a 100644 (file)
@@ -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);
 }