diff mbox

[RFC,01/11] s390/qemu: cpu modle disable list cpus

Message ID 1380713622-22325-2-git-send-email-mimu@linux.vnet.ibm.com
State New
Headers show

Commit Message

Michael Mueller Oct. 2, 2013, 11:33 a.m. UTC
The patch disables the early invocation of list_cpus() to allow
the dynamically initialization of all S390 cpu classes in current
host runtime context.

Signed-off-by: Michael Mueller <mimu@linux.vnet.ibm.com>
---
 vl.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/vl.c b/vl.c
index efb8644..15731b0 100644
--- a/vl.c
+++ b/vl.c
@@ -3841,9 +3841,11 @@  int main(int argc, char **argv, char **envp)
      */
     cpudef_init();
 
-    if (cpu_model && is_help_option(cpu_model)) {
-        list_cpus(stdout, &fprintf, cpu_model);
-        exit(0);
+    if (arch_type != QEMU_ARCH_S390X) {
+        if (cpu_model && is_help_option(cpu_model)) {
+            list_cpus(stdout, &fprintf, cpu_model);
+            exit(0);
+        }
     }
 
     /* Open the logfile at this point, if necessary. We can't open the logfile