All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Huang <wei@redhat.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, pbonzini@redhat.com
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	[thread overview]
Message-ID: <1426776801-17869-1-git-send-email-wei@redhat.com> (raw)

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 <wei@redhat.com>
---
 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	other threads:[~2015-03-19 14:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-19 14:53 Wei Huang [this message]
2015-03-19 14:55 ` [Qemu-devel] [PATCH 1/1] hw/arm/virt: Make host as default CPU type on AArch64 Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1426776801-17869-1-git-send-email-wei@redhat.com \
    --to=wei@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.