Patchwork [v5,18/21] linux-user: AArch64 requires at least 3.8.0

mail settings
Submitter Peter Maydell
Date July 1, 2013, 5:35 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/256187/
State New
Headers show


Peter Maydell - July 1, 2013, 5:35 p.m.
From: Alexander Graf <>

Glibc 1.17 checks for the host kernel version on startup. Unfortunately,
it also checks whether the host kernel version is recent enough for the
target to run at all.

Since AArch64 support only got introduced in 3.8.0, that means that glibc
refuses to run on any older kernel version than that.

To allow for execution of linux-user guests even on older host kernels,
let's always fake the kernel version to 3.8.0 on AArch64 guests.

Signed-off-by: Alexander Graf <>
Signed-off-by: John Rigby <>
Signed-off-by: Peter Maydell <>
 linux-user/syscall.c |    5 +++++
 1 file changed, 5 insertions(+)


diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 802ec95..c2497e4 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -304,7 +304,12 @@  static int sys_uname(struct new_utsname *buf)
   memset(buf, 0, sizeof(*buf));
   COPY_UTSNAME_FIELD(buf->sysname, uts_buf.sysname);
   COPY_UTSNAME_FIELD(buf->nodename, uts_buf.nodename);
+#ifdef TARGET_AARCH64
+  /* glibc refuses to run on older kernels */
+  COPY_UTSNAME_FIELD(buf->release, "3.8.0");
   COPY_UTSNAME_FIELD(buf->release, uts_buf.release);
   COPY_UTSNAME_FIELD(buf->version, uts_buf.version);
   COPY_UTSNAME_FIELD(buf->machine, uts_buf.machine);
 #ifdef _GNU_SOURCE