qemu/hw/block
Dr. David Alan Gilbert 90c647db8d Fix pflash migration
Pflash migration (e.g. q35 + EFI variable storage) fails
with the assert:

bdrv_co_do_pwritev: Assertion `!(bs->open_flags & 0x0800)' failed.

This avoids the problem by delaying the pflash update until after
the device loads complete.

Tested by:
  Migrating Q35/EFI vm.
  Changing efi variable content (with efiboot in the guest)
  md5sum'ing the variable file before migration and after.

This is a fix that Paolo posted in the message
  570244B3.4070105@redhat.com

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2016-04-15 17:27:34 +02:00
..
dataplane virtio: merge virtio_queue_aio_set_host_notifier_handler with virtio_queue_set_aio 2016-04-07 19:57:33 +03:00
block.c
cdrom.c
ecc.c
fdc.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
hd-geometry.c
m25p80.c block: m25p80: at25128a/at25256a models 2016-03-30 17:27:24 +01:00
Makefile.objs
nand.c
nvme.c
nvme.h util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
onenand.c
pflash_cfi01.c Fix pflash migration 2016-04-15 17:27:34 +02:00
pflash_cfi02.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
tc58128.c
virtio-blk.c virtio-blk: use aio handler for data plane 2016-04-07 19:57:33 +03:00
xen_blkif.h
xen_disk.c xen_disk: Call blk_set_enable_write_cache() explicitly 2016-03-30 12:16:01 +02:00