mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
qemu: Set RLIMIT_MEMLOCK when memoryBacking/locked is used
If a domain is configured to have all its memory locked, we need to set RLIMIT_MEMLOCK so that QEMU is actually allowed to lock the memory.
This commit is contained in:
parent
6d8ebc7538
commit
59cc0fe5aa
@ -6795,6 +6795,7 @@ qemuBuildCommandLine(virConnectPtr conn,
|
||||
virCommandAddArgFormat(cmd, "mlock=%s",
|
||||
def->mem.locked ? "on" : "off");
|
||||
}
|
||||
mlock = def->mem.locked;
|
||||
|
||||
virCommandAddArg(cmd, "-smp");
|
||||
if (!(smp = qemuBuildSmpArgStr(def, qemuCaps)))
|
||||
|
Loading…
Reference in New Issue
Block a user