qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 1/1] hw/arm/virt: Make host as default CPU type on A


From: Wei Huang
Subject: [Qemu-devel] [PATCH 1/1] hw/arm/virt: Make host as default CPU type on AArch64
Date: Thu, 19 Mar 2015 09:53:21 -0500

Currently mach-virt machine model uses cortex-a15 as default CPU when
-cpu option is missing. This caused confusion to certain virt tools
(e.g. libvirt, virt-install) which don't suppply -cpu option while
invoking qemu-kvm. To solve this problem this patch changes the default
CPU type to "host" when target is AArch64.

NOTE: It doesn't use "cortex-a57" as default CPU type because cortex-a57
doesn't work on some 64bit ARM machine, such as APM Mustang. "host" is
a safe bet for all AArch64 machines.

Signed-off-by: Wei Huang <address@hidden>
---
 hw/arm/virt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 9072bc2..1e8371c 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -731,7 +731,11 @@ static void machvirt_init(MachineState *machine)
     char **cpustr;
 
     if (!cpu_model) {
+#if defined(TARGET_AARCH64)
+        cpu_model = "host";
+#else
         cpu_model = "cortex-a15";
+#endif
     }
 
     /* Separate the actual CPU model name from any appended features */
-- 
1.8.3.1




reply via email to

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