[Qemu-devel] [PATCH 0/3] migration: Fix crash by cleaning up before quit

Fam Zheng posted 3 patches 6 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20170915054404.19914-1-famz@redhat.com
Test checkpatch passed
Test docker passed
Test s390x passed
include/migration/misc.h   |  1 +
migration/migration.c      |  7 +++-
migration/ram.c            |  3 ++
tests/qemu-iotests/195     | 97 ++++++++++++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/195.out | 19 +++++++++
tests/qemu-iotests/group   |  1 +
vl.c                       |  3 ++
7 files changed, 130 insertions(+), 1 deletion(-)
create mode 100755 tests/qemu-iotests/195
create mode 100644 tests/qemu-iotests/195.out
[Qemu-devel] [PATCH 0/3] migration: Fix crash by cleaning up before quit
Posted by Fam Zheng 6 years, 7 months ago
Quit command causes asssertion failure in block layer due to op blockers added
by BMDS, if there is an active block migration.

Fixing this by calling migration cleaning up functions at the end of main()
before bdrv_close_all() is called.

Fam Zheng (3):
  migration: Allow ram_save_cleanup to be called with empty state
  migration: Cancel migration at exit
  iotests: Add "quit during block migration" case 195

 include/migration/misc.h   |  1 +
 migration/migration.c      |  7 +++-
 migration/ram.c            |  3 ++
 tests/qemu-iotests/195     | 97 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/195.out | 19 +++++++++
 tests/qemu-iotests/group   |  1 +
 vl.c                       |  3 ++
 7 files changed, 130 insertions(+), 1 deletion(-)
 create mode 100755 tests/qemu-iotests/195
 create mode 100644 tests/qemu-iotests/195.out

-- 
2.13.5