render / rpms / libvirt

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