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