]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Restore original memory locking limit on reconnect
authorJiri Denemark <jdenemar@redhat.com>
Wed, 27 Jul 2022 12:33:23 +0000 (14:33 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 28 Jul 2022 11:04:45 +0000 (13:04 +0200)
commitbb9badb9168ad0d40bca86b6463ef504624f096d
treef1323d23daa278dccbc88360349502fcbca3a3e5
parent9c3d398df11024ef6c00a50c98fcc0f1f66c16a1
qemu: Restore original memory locking limit on reconnect

Commit v8.4.0-287-gd4d3bb8130 tried to make sure the original
pre-migration memory locking limit is restored at the end of migration,
but it missed the case when libvirt daemon is restarted during
migration which needs to be aborted on reconnect.

And if this was not enough, I forgot to actually save the status XML
after setting the field in priv (in the commit mentioned above and also
in v8.4.0-291-gd375993ab3).

https://bugzilla.redhat.com/show_bug.cgi?id=2107424

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration.c
src/qemu/qemu_process.c