cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
b38b0f
From bf545f4a8f40a4ac8f6d63d887a63d9f08329eb6 Mon Sep 17 00:00:00 2001
b38b0f
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
b38b0f
Date: Wed, 14 Aug 2019 08:52:10 +0100
b38b0f
Subject: [PATCH 10/10] RHEL: disable hostmem-memfd
b38b0f
MIME-Version: 1.0
b38b0f
Content-Type: text/plain; charset=UTF-8
b38b0f
Content-Transfer-Encoding: 8bit
b38b0f
b38b0f
RH-Author: Marc-André Lureau <marcandre.lureau@redhat.com>
b38b0f
Message-id: <20190814085210.18462-1-marcandre.lureau@redhat.com>
b38b0f
Patchwork-id: 89974
b38b0f
O-Subject: [RHEL-8.1.0 qemu-kvm PATCH] RHEL: disable hostmem-memfd
b38b0f
Bugzilla: 1740797
b38b0f
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
b38b0f
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
b38b0f
RH-Acked-by: John Snow <jsnow@redhat.com>
b38b0f
b38b0f
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1740797
b38b0f
BRANCH: rhel8/rhel-8.1.0
b38b0f
UPSTREAM: n/a (downstream only)
b38b0f
BREW: 23060214
b38b0f
b38b0f
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
b38b0f
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
b38b0f
---
b38b0f
 backends/Makefile.objs | 3 ++-
b38b0f
 util/memfd.c           | 2 +-
b38b0f
 2 files changed, 3 insertions(+), 2 deletions(-)
b38b0f
b38b0f
diff --git a/backends/Makefile.objs b/backends/Makefile.objs
b38b0f
index ad7c032..673fc55 100644
b38b0f
--- a/backends/Makefile.objs
b38b0f
+++ b/backends/Makefile.objs
b38b0f
@@ -15,4 +15,5 @@ common-obj-$(call land,$(CONFIG_VHOST_USER),$(CONFIG_LINUX)) += \
b38b0f
     cryptodev-vhost-user.o
b38b0f
 endif
b38b0f
 
b38b0f
-common-obj-$(CONFIG_LINUX) += hostmem-memfd.o
b38b0f
+# RHEL: disable memfd
b38b0f
+# common-obj-$(CONFIG_LINUX) += hostmem-memfd.o
b38b0f
diff --git a/util/memfd.c b/util/memfd.c
b38b0f
index b3ecbac..9312653 100644
b38b0f
--- a/util/memfd.c
b38b0f
+++ b/util/memfd.c
b38b0f
@@ -202,7 +202,7 @@ bool qemu_memfd_alloc_check(void)
b38b0f
  */
b38b0f
 bool qemu_memfd_check(void)
b38b0f
 {
b38b0f
-#ifdef CONFIG_LINUX
b38b0f
+#if 0 /* RHEL: memfd support disabled */
b38b0f
     static int memfd_check = MEMFD_TODO;
b38b0f
 
b38b0f
     if (memfd_check == MEMFD_TODO) {
b38b0f
-- 
b38b0f
1.8.3.1
b38b0f