]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_migration: Don't set unlimited memlock limit for RDMA
authorJiri Denemark <jdenemar@redhat.com>
Thu, 23 Jun 2022 12:25:30 +0000 (14:25 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 23 Jun 2022 14:45:39 +0000 (16:45 +0200)
commitf01fc4d1197c8f832638407e96502a23a0725990
tree79ca74a6e6f53228e4e672c5b671258eccdc7e8c
parentd4d3bb813031275c2c7cf72724b83c97ce82ab7a
qemu_migration: Don't set unlimited memlock limit for RDMA

Our documentation says RDMA migration requires hard_limit to be set so
that we know how big memory locking limit should be set for the domain
during migration. But since commit v1.2.13-71-gcf521fc8ba (which changed
the default hard_limit value from 0 to
VIR_DOMAIN_MEMORY_PARAM_UNLIMITED) we were actually setting memlock
limit to unlimited if hard_limit was not set.

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