diff options
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu/0012-linux-user-workaround-for-missing-MAP_SHARED_VALIDAT.patch')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu/0012-linux-user-workaround-for-missing-MAP_SHARED_VALIDAT.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/0012-linux-user-workaround-for-missing-MAP_SHARED_VALIDAT.patch b/meta/recipes-devtools/qemu/qemu/0012-linux-user-workaround-for-missing-MAP_SHARED_VALIDAT.patch new file mode 100644 index 0000000000..48034a4680 --- /dev/null +++ b/meta/recipes-devtools/qemu/qemu/0012-linux-user-workaround-for-missing-MAP_SHARED_VALIDAT.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | From 5c73e53997df800a742f9cd7355f3045861984bb Mon Sep 17 00:00:00 2001 | ||
2 | From: Frederic Konrad <fkonrad@amd.com> | ||
3 | Date: Thu, 18 Jan 2024 10:43:44 +0000 | ||
4 | Subject: [PATCH 2/2] linux-user/*: workaround for missing MAP_SHARED_VALIDATE | ||
5 | |||
6 | QEMU v8.1.0 recently requires MAP_SHARED_VALIDATE flags implementation for mmap. | ||
7 | |||
8 | This is missing from the Ubuntu 18.04 compiler but looks like to be in the | ||
9 | kernel source. | ||
10 | |||
11 | Signed-off-by: Frederic Konrad <fkonrad@amd.com> | ||
12 | Signed-off-by: Francisco Iglesias <francisco.iglesias@amd.com> | ||
13 | |||
14 | Upstream-Status: Inappropriate [OE specific] | ||
15 | |||
16 | The upstream only supports the last two major releases of an OS. The ones | ||
17 | they have declared all have kernel 4.17 or newer. | ||
18 | |||
19 | See: | ||
20 | https://xilinx.slack.com/archives/D04G2647CTV/p1705074697942019 | ||
21 | |||
22 | https://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 | |||
29 | Signed-off-by: Mark Hatle <mark.hatle@amd.com> | ||
30 | --- | ||
31 | linux-user/mmap-fixed.h | 4 ++++ | ||
32 | 1 file changed, 4 insertions(+) | ||
33 | |||
34 | diff --git a/linux-user/mmap-fixed.h b/linux-user/mmap-fixed.h | ||
35 | index 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 | -- | ||
50 | 2.34.1 | ||
51 | |||