]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_migration: Use qemuDomainSetMaxMemLock
authorJiri Denemark <jdenemar@redhat.com>
Wed, 22 Jun 2022 07:04:04 +0000 (09:04 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 23 Jun 2022 14:45:39 +0000 (16:45 +0200)
commit22ee8cbf090c45f999b76e3f8dc7a45065fc9edf
tree72251ddcef4bcb7d38f53cf4231ff6f05911a559
parentdff51c7f5760ded8235076f55d082fe4363f2f78
qemu_migration: Use qemuDomainSetMaxMemLock

This helper will not try to set the limit if it is already big enough,
which may be useful when libvirt daemon is running in a containerized
environment and is not allowed to change memory locking limit.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c