Re: [PATCH 3/3] qemu: Set RLIMIT_MEMLOCK when memoryBacking/locked is used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/28/2013 11:04 AM, Jiri Denemark wrote:
> 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.
> ---
>  src/qemu/qemu_command.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
> index f902501..278d2f2 100644
> --- a/src/qemu/qemu_command.c
> +++ b/src/qemu/qemu_command.c
> @@ -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)))

ACK.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]