All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target/s390x: Fix broken user mode
@ 2017-01-28  8:36 Stefan Weil
  2017-01-30 10:01 ` Christian Borntraeger
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Weil @ 2017-01-28  8:36 UTC (permalink / raw)
  To: Richard Henderson, Alexander Graf; +Cc: qemu-devel, Aurelien Jarno

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)
  {
-#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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] target/s390x: Fix broken user mode
  2017-01-28  8:36 [Qemu-devel] [PATCH] target/s390x: Fix broken user mode Stefan Weil
@ 2017-01-30 10:01 ` Christian Borntraeger
  2017-01-30 13:18   ` Stefan Weil
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Borntraeger @ 2017-01-30 10:01 UTC (permalink / raw)
  To: Stefan Weil, Richard Henderson, Alexander Graf; +Cc: qemu-devel, Aurelien Jarno

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
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] target/s390x: Fix broken user mode
  2017-01-30 10:01 ` Christian Borntraeger
@ 2017-01-30 13:18   ` Stefan Weil
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Weil @ 2017-01-30 13:18 UTC (permalink / raw)
  To: Christian Borntraeger, Richard Henderson, Alexander Graf
  Cc: qemu-devel, Aurelien Jarno

Am 30.01.2017 um 11:01 schrieb Christian Borntraeger:
> 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 {.

The original e-mail was not delivered by my mail server.
Therefore I had sent it as "new" with Thunderbird, which
wrapped some lines.

I'm sorry for that and have sent a v2 which should be fine.

Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-30 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-28  8:36 [Qemu-devel] [PATCH] target/s390x: Fix broken user mode Stefan Weil
2017-01-30 10:01 ` Christian Borntraeger
2017-01-30 13:18   ` Stefan Weil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.