render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
3a9410
From 08fef741d85ecfb3493c47f5f1334f91c30e3233 Mon Sep 17 00:00:00 2001
3a9410
Message-Id: <08fef741d85ecfb3493c47f5f1334f91c30e3233@dist-git>
3a9410
From: Jiri Denemark <jdenemar@redhat.com>
3a9410
Date: Wed, 9 Feb 2022 11:08:42 +0100
3a9410
Subject: [PATCH] qemu: Ignore missing vm.unprivileged_userfaultfd sysctl
3a9410
MIME-Version: 1.0
3a9410
Content-Type: text/plain; charset=UTF-8
3a9410
Content-Transfer-Encoding: 8bit
3a9410
3a9410
Older kernels did not support this sysctl, but they did not restrict
3a9410
userfaultfd in any way so everything worked as if
3a9410
vm.unprivileged_userfaultfd was set to 1. Thus we can safely ignore
3a9410
errors when setting the value.
3a9410
3a9410
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
3a9410
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3a9410
(cherry picked from commit 558f00397a0d46ad22bf53a22a40ed6fc4fdb5eb)
3a9410
3a9410
https://bugzilla.redhat.com/show_bug.cgi?id=2148578
3a9410
3a9410
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
3a9410
---
3a9410
 src/qemu/postcopy-migration.sysctl | 2 +-
3a9410
 1 file changed, 1 insertion(+), 1 deletion(-)
3a9410
3a9410
diff --git a/src/qemu/postcopy-migration.sysctl b/src/qemu/postcopy-migration.sysctl
3a9410
index aa8f015ae0..db3f11e49f 100644
3a9410
--- a/src/qemu/postcopy-migration.sysctl
3a9410
+++ b/src/qemu/postcopy-migration.sysctl
3a9410
@@ -3,4 +3,4 @@
3a9410
 # privileged processes.
3a9410
 # It can be safely overridden by a file in /etc/sysctl.d/ in case post-copy
3a9410
 # migration is not used on the host.
3a9410
-vm.unprivileged_userfaultfd = 1
3a9410
+-vm.unprivileged_userfaultfd = 1
3a9410
-- 
3a9410
2.39.0
3a9410