summaryrefslogtreecommitdiff
path: root/block-migration.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2011-04-06 18:34:31 +0800
committerKevin Wolf <kwolf@redhat.com>2011-04-07 13:51:48 +0200
commit7d905f716bea633f2836e1d661387983aacdc6d6 (patch)
treed9b9f4ecb0ef2af6c6c5a6a71017a9a1b0eb38e6 /block-migration.c
parent33897dc7d62970acb731aab2ef2a65c225a8d64c (diff)
downloadqemu-7d905f716bea633f2836e1d661387983aacdc6d6.tar.gz
floppy: save and restore DIR register
We need to keep DIR register unchanged across migration, but currently it depends on the media_changed flags from block layer. Since we do not save/restore it and the bdrv_open() called in dest node may set the media_changed flag when trying to open floppy image, guest driver may think the floppy have changed after migration. To fix this, a new filed media_changed in FDrive strcutre was introduced in order to save and restore the it from block layer through pre_save/post_load callbacks. Signed-off-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block-migration.c')
0 files changed, 0 insertions, 0 deletions