[libvirt PATCH 00/11] improve and cleanup internal snapshot revert

Pavel Hrdina phrdina at redhat.com
Mon Nov 15 16:22:43 UTC 2021


This fixes few issues with reverting internal snapshot where the VM was
modified and our compatibility check code failed to detect it, for
example changing one of the VM disks.

It also cleanups the code significantly as a preparation for other
cleanups and future external snapshot implementation.

Pavel Hrdina (11):
  qemu_snapshot: revert: always error out if VM XML is missing
  qemu_snapshot: revert: always restart QEMU process for running VM
  qemu_snapshot: revert: drop unused loadvm code
  qemu_snapshot: revert: fix emitting events
  qemu_snapshot: revert: drop error that QEMU process must be restarted
  test: snapshot revert: always error out if VM XML is missing
  test: snapshot revert: always emulate VM process stop
  test: snapshot revert: drop unused code
  test: snapshot revert: fix emitting events
  test: snapshot revert: drop error the VM must be restarted
  domain_snapshot: update virDomainRevertToSnapshot description

 src/libvirt-domain-snapshot.c |   5 +
 src/qemu/qemu_snapshot.c      | 244 +++++++++-------------------------
 src/test/test_driver.c        | 121 ++++-------------
 3 files changed, 93 insertions(+), 277 deletions(-)

-- 
2.31.1




More information about the libvir-list mailing list