Fix migration for ide devices
authorAnthony Liguori <aliguori@us.ibm.com>
Thu, 13 Aug 2009 18:58:21 +0000 (13:58 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 13 Aug 2009 21:05:12 +0000 (16:05 -0500)
commit 93c8cfd9e67a62711b86f4c93747566885eb7928
Author: Gleb Natapov <gleb@redhat.com>
Date:   Sun Aug 2 11:36:47 2009 +0300

    make windows notice media change

Broke save/restore by loading a new field but not saving it.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/ide.c

index bebda7cfcad52024c42f84e79f5137b7e721d638..1e38ae3eac7ea855b65e7502cb839e67f38e6a4e 100644 (file)
--- a/hw/ide.c
+++ b/hw/ide.c
@@ -2888,6 +2888,7 @@ static void ide_save(QEMUFile* f, IDEState *s)
 
     qemu_put_8s(f, &s->sense_key);
     qemu_put_8s(f, &s->asc);
+    qemu_put_8s(f, &s->cdrom_changed);
     /* XXX: if a transfer is pending, we do not save it yet */
 }