summaryrefslogtreecommitdiffstats
path: root/linux-user/arm
diff options
context:
space:
mode:
authorRichard Henderson2022-08-11 02:22:04 +0200
committerRichard Henderson2022-09-06 08:32:35 +0200
commitfbd3c4cff641cae082edb765017cbb699efa6712 (patch)
tree012e04885c0592dd86e8228cedb5baf13a147226 /linux-user/arm
parentMerge tag 'pull-or1k-20220904' of https://github.com/stffrdhrn/qemu into staging (diff)
downloadqemu-fbd3c4cff641cae082edb765017cbb699efa6712.tar.gz
qemu-fbd3c4cff641cae082edb765017cbb699efa6712.tar.xz
qemu-fbd3c4cff641cae082edb765017cbb699efa6712.zip
linux-user/arm: Mark the commpage executable
We're about to start validating PAGE_EXEC, which means that we've got to mark the commpage executable. We had been placing the commpage outside of reserved_va, which was incorrect and lead to an abort. Acked-by: Ilya Leoshkevich <iii@linux.ibm.com> Tested-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/arm')
-rw-r--r--linux-user/arm/target_cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/arm/target_cpu.h b/linux-user/arm/target_cpu.h
index 709d19bc9e..89ba274cfc 100644
--- a/linux-user/arm/target_cpu.h
+++ b/linux-user/arm/target_cpu.h
@@ -34,9 +34,9 @@ static inline unsigned long arm_max_reserved_va(CPUState *cs)
} else {
/*
* We need to be able to map the commpage.
- * See validate_guest_space in linux-user/elfload.c.
+ * See init_guest_commpage in linux-user/elfload.c.
*/
- return 0xffff0000ul;
+ return 0xfffffffful;
}
}
#define MAX_RESERVED_VA arm_max_reserved_va