qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/2] QEMU: PPC: set default cpu type to be 'host'


From: Stuart Yoder
Subject: [Qemu-devel] [PATCH 2/2] QEMU: PPC: set default cpu type to be 'host'
Date: Fri, 14 Feb 2014 13:22:52 -0600

From: Stuart Yoder <address@hidden>

-for KVM we always want the cpu to be that of the
 host system, so make that the default

-for TGC mode, the emulated cpu type should be explicitly
 set

Signed-off-by: Stuart Yoder <address@hidden>
---
 hw/ppc/e500.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index b37ce9d..69dbf47 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -621,7 +621,11 @@ void ppce500_init(QEMUMachineInitArgs *args, PPCE500Params 
*params)
 
     /* Setup CPUs */
     if (args->cpu_model == NULL) {
-        args->cpu_model = "e500v2_v30";
+        if (kvm_enabled()) {
+            args->cpu_model = "host";
+        } else {
+            args->cpu_model = "e500v2_v30";
+        }
     }
 
     irqs = g_malloc0(smp_cpus * sizeof(qemu_irq *));
-- 
1.7.9.7





reply via email to

[Prev in Thread] Current Thread [Next in Thread]