From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYbpB-0006Mn-Pn for qemu-devel@nongnu.org; Thu, 19 Mar 2015 10:53:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYbp5-00086f-Lc for qemu-devel@nongnu.org; Thu, 19 Mar 2015 10:53:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYbp5-00085x-GL for qemu-devel@nongnu.org; Thu, 19 Mar 2015 10:53:23 -0400 From: Wei Huang Date: Thu, 19 Mar 2015 09:53:21 -0500 Message-Id: <1426776801-17869-1-git-send-email-wei@redhat.com> Subject: [Qemu-devel] [PATCH 1/1] hw/arm/virt: Make host as default CPU type on AArch64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, pbonzini@redhat.com 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 --- 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