]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: migration: Validate migration XML
authorPeter Krempa <pkrempa@redhat.com>
Tue, 5 Dec 2023 15:17:57 +0000 (16:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 7 Dec 2023 15:42:32 +0000 (16:42 +0100)
commitb99c709d8d13ea0c538886a0bde80f934ef22682
tree8884f6f22c34fba418b5ab572ca8c4c75f247d8b
parentd96858b0e8a7f5243e3dfaea96401bb1af887e95
qemu: migration: Validate migration XML

There's no point in skiping the validation step:
- on the source, the VM is parsed for ABI stability checking, thus the
  equivalent config was validated when the VM was started

- on the destination, the XML will be validated inside qemuProcessInit
  very soon after it is parsed

This fixes problems such as if the user uses a relative path in the disk
source or omits the source, as the disk migration code reasonably
expects that all checks were performed.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration.c