qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] target/s390x: Fix broken user mode
@ 2017-01-30 13:15 Stefan Weil
  2017-01-30 14:10 ` David Hildenbrand
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Stefan Weil @ 2017-01-30 13:15 UTC (permalink / raw)
  To: Richard Henderson, Alexander Graf
  Cc: qemu-devel, Aurelien Jarno, David Hildenbrand,
	Christian Borntraeger, Cornelia Huck, Stefan Weil

Returning NULL from get_max_cpu_model results in a SIGSEGV runtime error.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---

v2: Re-sent as v1 was damaged by my mailer.

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] 11+ messages in thread

end of thread, other threads:[~2017-03-22  9:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-30 13:15 [Qemu-devel] [PATCH v2] target/s390x: Fix broken user mode Stefan Weil
2017-01-30 14:10 ` David Hildenbrand
2017-01-30 14:44   ` Peter Maydell
2017-01-30 14:42 ` David Hildenbrand
2017-03-02 19:56 ` David Hildenbrand
2017-03-16 13:28   ` David Hildenbrand
2017-03-16 14:46     ` Philippe Mathieu-Daudé
2017-03-16 14:48       ` David Hildenbrand
2017-03-22  9:07 ` Christian Borntraeger
2017-03-22  9:09   ` David Hildenbrand
2017-03-22  9:09 ` Christian Borntraeger

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