qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] linux-user: Fix the build on systems without MAP_SHARED_


From: Helge Deller
Subject: Re: [PATCH 2/3] linux-user: Fix the build on systems without MAP_SHARED_VALIDATE
Date: Fri, 11 Aug 2023 00:03:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 8/10/23 23:51, Ilya Leoshkevich wrote:
CentOS 7 does not define MAP_SHARED_VALIDATE. Use a definition provided
by the QEMU's copy of linux/mman.h.

Fixes: 4b840f96096d ("linux-user: Populate more bits in mmap_flags_tbl")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>

Does it fix the missing MADV_WIPEONFORK as well?
https://gitlab.com/qemu-project/qemu/-/issues/1824#note_1507837354

Helge

---
  linux-user/syscall.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 42f4aed8e84..256f38cdd5d 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -121,6 +121,7 @@
  #ifdef HAVE_BTRFS_H
  #include <linux/btrfs.h>
  #endif
+#include <linux/mman.h>
  #ifdef HAVE_DRM_H
  #include <libdrm/drm.h>
  #include <libdrm/i915_drm.h>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]