From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRTjc-0002ew-Ef for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:23:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRTjU-0002YR-A4 for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:23:00 -0400 Received: from [199.232.76.173] (port=49201 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRTjT-0002Y4-SJ for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:22:55 -0400 Received: from cantor2.suse.de ([195.135.220.15]:51675 helo=mx2.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRTjT-0006r6-Aw for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:22:55 -0400 Received: from relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 883D18672B for ; Thu, 16 Jul 2009 18:22:53 +0200 (CEST) From: Alexander Graf Date: Thu, 16 Jul 2009 18:22:48 +0200 Message-Id: <1247761371-16980-2-git-send-email-agraf@suse.de> In-Reply-To: <1247761371-16980-1-git-send-email-agraf@suse.de> References: <1247761371-16980-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH 1/4] Enable PPC KVM for non-embedded List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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. --- 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