From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Stefan Weil <sw@weilnetz.de>, Richard Henderson <rth@twiddle.net>,
Alexander Graf <agraf@suse.de>
Cc: qemu-devel@nongnu.org, Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH] target/s390x: Fix broken user mode
Date: Mon, 30 Jan 2017 11:01:43 +0100 [thread overview]
Message-ID: <f2110c0b-45b5-e2d0-b95d-a12d402cad1d@de.ibm.com> (raw)
In-Reply-To: <69936381-a99e-adc4-5de0-0f9bdf85323b@weilnetz.de>
On 01/28/2017 09:36 AM, Stefan Weil wrote:
> Returning NULL from get_max_cpu_model results in a SIGSEGV runtime error.
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>
> This is also broken in Debian.
>
> In addition, there is no default CPU ("any"), so binfmt and related
> actions currently don't work. I hacked my local installation by
> duplicating the "qemu" cpu definition for "any", but maybe there is
> a better solution.
>
> Regards
> Stefan
>
> target/s390x/cpu_models.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/target/s390x/cpu_models.c b/target/s390x/cpu_models.c
> index 2a894ee..6e34763 100644
> --- a/target/s390x/cpu_models.c
> +++ b/target/s390x/cpu_models.c
> @@ -660,7 +660,6 @@ static void check_compatibility(const S390CPUModel *max_model,
> static S390CPUModel *get_max_cpu_model(Error **errp)
> {
I have for whatever reasons problems with this patch. Looks like you pasted
it into thunderbird or something like that and the whitespaces look mangled,
e.g. look at the indentation of static vs {.
> -#ifndef CONFIG_USER_ONLY
> static S390CPUModel max_model;
> static bool cached;
> @@ -680,7 +679,6 @@ static S390CPUModel *get_max_cpu_model(Error **errp)
> cached = true;
> return &max_model;
> }
> -#endif
> return NULL;
> }
> -- 2.1.4
>
>
next prev parent reply other threads:[~2017-01-30 10:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-28 8:36 [Qemu-devel] [PATCH] target/s390x: Fix broken user mode Stefan Weil
2017-01-30 10:01 ` Christian Borntraeger [this message]
2017-01-30 13:18 ` Stefan Weil
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=f2110c0b-45b5-e2d0-b95d-a12d402cad1d@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=agraf@suse.de \
--cc=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=sw@weilnetz.de \
/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).