qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 1/4] Enable PPC KVM for non-embedded
Date: Thu, 16 Jul 2009 19:52:13 +0200	[thread overview]
Message-ID: <1247766736-17197-2-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1247766736-17197-1-git-send-email-agraf@suse.de>

We now have KVM on PPC64 too and might get it on PPC32 as well, as soon
as someone writes it.

So let's enable KVM for PPC32 and PPC64 targets.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 configure |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index cba0c08..d832d17 100755
--- a/configure
+++ b/configure
@@ -1969,6 +1969,7 @@ target_kvm="$kvm"
 # Make sure the target and host cpus are compatible
 if test ! \( "$target_arch2" = "$cpu" -o \
   \( "$target_arch2" = "ppcemb" -a "$cpu" = "ppc" \) -o \
+  \( "$target_arch2" = "ppc64"  -a "$cpu" = "ppc"   \) -o \
   \( "$target_arch2" = "x86_64" -a "$cpu" = "i386"   \) -o \
   \( "$target_arch2" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
   target_kvm="no"
@@ -2087,6 +2088,11 @@ case "$target_arch2" in
     echo "TARGET_ARCH=ppc" >> $config_mak
     echo "#define TARGET_ARCH \"ppc\"" >> $config_h
     echo "#define TARGET_PPC 1" >> $config_h
+    if test "$target_kvm" = "yes" ; then
+      echo "CONFIG_KVM=y" >> $config_mak
+      echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
+      echo "#define CONFIG_KVM 1" >> $config_h
+    fi
     gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml"
     target_phys_bits=32
   ;;
@@ -2110,6 +2116,11 @@ case "$target_arch2" in
     echo "#define TARGET_ARCH \"ppc64\"" >> $config_h
     echo "#define TARGET_PPC 1" >> $config_h
     echo "#define TARGET_PPC64 1" >> $config_h
+    if test "$target_kvm" = "yes" ; then
+      echo "CONFIG_KVM=y" >> $config_mak
+      echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
+      echo "#define CONFIG_KVM 1" >> $config_h
+    fi
     gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml"
     target_phys_bits=64
   ;;
-- 
1.6.0.2

  reply	other threads:[~2009-07-16 17:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-16 17:52 [Qemu-devel] [PATCH 0/4] Add preliminary KVM support for non-embedded PPC v2 Alexander Graf
2009-07-16 17:52 ` Alexander Graf [this message]
2009-07-16 17:52   ` [Qemu-devel] [PATCH 2/4] Set PVR in sregs Alexander Graf
2009-07-16 17:52     ` [Qemu-devel] [PATCH 3/4] Add mp_state to PPC CPU struct Alexander Graf
2009-07-16 17:52       ` [Qemu-devel] [PATCH 4/4] Fix warning in kvm-all.c Alexander Graf
2009-07-17  0:15   ` [Qemu-devel] [PATCH] Enable kvm for ppc/ppc64 quintela
2009-07-17  1:22     ` Anthony Liguori
2009-07-17  8:05       ` [Qemu-devel] " Juan Quintela
2009-07-17 11:06     ` [Qemu-devel] " Alexander Graf
  -- strict thread matches above, loose matches on Subject: below --
2009-07-16 16:22 [Qemu-devel] [PATCH 0/4] Add preliminary KVM support for non-embedded PPC Alexander Graf
2009-07-16 16:22 ` [Qemu-devel] [PATCH 1/4] Enable PPC KVM for non-embedded Alexander Graf

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=1247766736-17197-2-git-send-email-agraf@suse.de \
    --to=agraf@suse.de \
    --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 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).