]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Only raise memlock limit if necessary
authorAndrea Bolognani <abologna@redhat.com>
Tue, 9 Mar 2021 10:40:21 +0000 (11:40 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 22 Mar 2021 11:05:18 +0000 (12:05 +0100)
commitaf41380672a1c1c7ce5531f761bf8834452ff58e
treedb2c88472ded2f0c3dd49a4fee11028633a317bf
parentb4967d7498756777ea64ead2707147d6cbd1a0ff
qemu: Only raise memlock limit if necessary

Attempting to set the memlock limit might fail if we're running
in a containerized environment where CAP_SYS_RESOURCE is not
available, and if the limit is already high enough there's no
point in trying to raise it anyway.

https://bugzilla.redhat.com/show_bug.cgi?id=1916346

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c