From: Riku Voipio <riku.voipio@iki.fi>
To: Alexander Graf <agraf@suse.de>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Riku Voipio <riku.voipio@iki.fi>,
qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 07/12] linux-user: AArch64 requires at least 3.8.0
Date: Wed, 6 Mar 2013 09:04:04 +0200 [thread overview]
Message-ID: <20130306070404.GA2609@afflict.kos.to> (raw)
In-Reply-To: <1362535280-5068-8-git-send-email-agraf@suse.de>
Hi,
Cool work and thanks for early sharing.
On Wed, Mar 06, 2013 at 03:01:15AM +0100, Alexander Graf wrote:
> 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.
We already allow setting uname version at command line (-r) and with
./configure . A better place to hardcode this would be linux-user/main.c
where qemu_uname_release is set. Or even just setting
CONFIG_UNAME_RELEASE to the aarch64 config-target.mak
Riku
> Signed-off-by: Alexander Graf <agraf@suse.de>
> ---
> linux-user/syscall.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 19630ea..38c0711 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -313,7 +313,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_ARM64
> + /* glibc refuses to run on older kernels */
> + COPY_UTSNAME_FIELD(buf->release, "3.8.0");
> +#else
> COPY_UTSNAME_FIELD(buf->release, uts_buf.release);
> +#endif
> COPY_UTSNAME_FIELD(buf->version, uts_buf.version);
> COPY_UTSNAME_FIELD(buf->machine, uts_buf.machine);
> #ifdef _GNU_SOURCE
> --
> 1.6.0.2
next prev parent reply other threads:[~2013-03-06 7:04 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-06 2:01 [Qemu-devel] [PATCH 00/12] AArch64 preparation patch set Alexander Graf
2013-03-06 2:01 ` [Qemu-devel] [PATCH 01/12] ARM: Extract the disas struct to a header file Alexander Graf
2013-03-06 2:01 ` [Qemu-devel] [PATCH 02/12] ARM: Export cpu_env Alexander Graf
2013-03-06 2:01 ` [Qemu-devel] [PATCH 03/12] ARM: Prepare translation for AArch64 code Alexander Graf
2013-03-06 7:11 ` Laurent Desnogues
2013-03-06 9:36 ` Alexander Graf
2013-03-06 9:46 ` Laurent Desnogues
2013-03-08 2:27 ` Peter Maydell
2013-03-06 2:01 ` [Qemu-devel] [PATCH 04/12] ARM: Add AArch64 translation stub Alexander Graf
2013-03-06 7:06 ` Laurent Desnogues
2013-03-08 2:31 ` Peter Maydell
2013-03-06 2:01 ` [Qemu-devel] [PATCH 05/12] AArch64: Add gdb stub Alexander Graf
2013-03-06 2:01 ` [Qemu-devel] [PATCH 06/12] linux-user: Don't treat aarch64 cpu names specially Alexander Graf
2013-03-06 2:01 ` [Qemu-devel] [PATCH 07/12] linux-user: AArch64 requires at least 3.8.0 Alexander Graf
2013-03-06 7:04 ` Riku Voipio [this message]
2013-03-06 2:01 ` [Qemu-devel] [PATCH 08/12] linux-user: Add syscall handling for AArch64 Alexander Graf
2013-03-06 2:01 ` [Qemu-devel] [PATCH 09/12] linux-user: Fix up AArch64 syscall handlers Alexander Graf
2013-03-06 2:01 ` [Qemu-devel] [PATCH 10/12] linux-user: Add signal handling for AArch64 Alexander Graf
2013-03-06 2:01 ` [Qemu-devel] [PATCH 11/12] linux-user: Add AArch64 support Alexander Graf
2013-03-06 2:01 ` [Qemu-devel] [PATCH 12/12] ARM: Add arm64 target to configure Alexander Graf
2013-03-06 3:58 ` Peter Maydell
2013-03-06 7:01 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130306070404.GA2609@afflict.kos.to \
--to=riku.voipio@iki.fi \
--cc=agraf@suse.de \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).