From: Stuart Yoder <stuart.yoder@freescale.com>
To: agraf@suse.de
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org,
Stuart Yoder <stuart.yoder@freescale.com>
Subject: [Qemu-devel] [PATCH 2/2] QEMU: PPC: set default cpu type to be 'host'
Date: Fri, 14 Feb 2014 13:22:52 -0600 [thread overview]
Message-ID: <1392405772-8664-2-git-send-email-stuart.yoder@freescale.com> (raw)
In-Reply-To: <1392405772-8664-1-git-send-email-stuart.yoder@freescale.com>
From: Stuart Yoder <stuart.yoder@freescale.com>
-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 <stuart.yoder@freescale.com>
---
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
prev parent reply other threads:[~2014-02-14 19:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-14 19:22 [Qemu-devel] [PATCH 1/2] QEMU: PPC: specify PVRs for all e500 cores Stuart Yoder
2014-02-14 19:22 ` Stuart Yoder [this message]
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=1392405772-8664-2-git-send-email-stuart.yoder@freescale.com \
--to=stuart.yoder@freescale.com \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).