1From 5c73e53997df800a742f9cd7355f3045861984bb Mon Sep 17 00:00:00 2001 2From: Frederic Konrad <fkonrad@amd.com> 3Date: Thu, 18 Jan 2024 10:43:44 +0000 4Subject: [PATCH 2/2] linux-user/*: workaround for missing MAP_SHARED_VALIDATE 5 6QEMU v8.1.0 recently requires MAP_SHARED_VALIDATE flags implementation for mmap. 7 8This is missing from the Ubuntu 18.04 compiler but looks like to be in the 9kernel source. 10 11Signed-off-by: Frederic Konrad <fkonrad@amd.com> 12Signed-off-by: Francisco Iglesias <francisco.iglesias@amd.com> 13 14Upstream-Status: Inappropriate [OE specific] 15 16The upstream only supports the last two major releases of an OS. The ones 17they have declared all have kernel 4.17 or newer. 18 19See: 20https://xilinx.slack.com/archives/D04G2647CTV/p1705074697942019 21 22https://www.qemu.org/docs/master/about/build-platforms.html 23 24 The project aims to support the most recent major version at all times for up 25 to five years after its initial release. Support for the previous major 26 version will be dropped 2 years after the new major version is released or 27 when the vendor itself drops support, whichever comes first. 28 29Signed-off-by: Mark Hatle <mark.hatle@amd.com> 30--- 31 linux-user/mmap-fixed.h | 4 ++++ 32 1 file changed, 4 insertions(+) 33 34diff --git a/linux-user/mmap-fixed.h b/linux-user/mmap-fixed.h 35index ef6eef5114..ec86586c1f 100644 36--- a/linux-user/mmap-fixed.h 37+++ b/linux-user/mmap-fixed.h 38@@ -26,6 +26,10 @@ 39 #ifndef MMAP_FIXED_H 40 #define MMAP_FIXED_H 41 42+#ifndef MAP_SHARED_VALIDATE 43+#define MAP_SHARED_VALIDATE 0x03 44+#endif 45+ 46 #ifndef MAP_FIXED_NOREPLACE 47 #define MAP_FIXED_NOREPLACE 0x100000 48 49-- 502.34.1 51 52