linux-user: Don't reserve space for commpage for AArch64
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 10 Mar 2014 12:59:17 +0000 (12:59 +0000)
committerRiku Voipio <riku.voipio@linaro.org>
Mon, 17 Mar 2014 09:44:31 +0000 (11:44 +0200)
AArch64 Linux, unlike AArch32, doesn't use a commpage. This means we
should not be reserving room in the guest address space for one.
Fixes LP:1287195.

Reported-by: Amanieu d'Antras <amanieu@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/elfload.c

index 6bc799957b0e762325b1c9e54e1a812bdfa34a5b..99a2c586eb8bdef85bac03bcfabca1f19eba2da2 100644 (file)
@@ -352,6 +352,9 @@ enum
     ARM_HWCAP_ARM_VFPv3D16  = 1 << 13,
 };
 
+#ifndef TARGET_AARCH64
+/* The commpage only exists for 32 bit kernels */
+
 #define TARGET_HAS_VALIDATE_GUEST_SPACE
 /* Return 1 if the proposed guest space is suitable for the guest.
  * Return 0 if the proposed guest space isn't suitable, but another
@@ -411,7 +414,7 @@ static int validate_guest_space(unsigned long guest_base,
 
     return 1; /* All good */
 }
-
+#endif
 
 #define ELF_HWCAP get_elf_hwcap()