mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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>
This commit is contained in:
parent
d4d3bb8130
commit
f01fc4d119
@ -3180,7 +3180,7 @@ qemuMigrationDstPrepareActive(virQEMUDriver *driver,
|
||||
}
|
||||
|
||||
if (STREQ_NULLABLE(protocol, "rdma") &&
|
||||
vm->def->mem.hard_limit > 0 &&
|
||||
virMemoryLimitIsSet(vm->def->mem.hard_limit) &&
|
||||
qemuDomainSetMaxMemLock(vm, vm->def->mem.hard_limit << 10,
|
||||
&priv->preMigrationMemlock) < 0) {
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user