From patchwork Fri Sep 18 11:41:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 48505 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8IBg5Uc013882 for ; Fri, 18 Sep 2009 11:42:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756623AbZIRLl6 (ORCPT ); Fri, 18 Sep 2009 07:41:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756654AbZIRLl6 (ORCPT ); Fri, 18 Sep 2009 07:41:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36352 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756641AbZIRLly (ORCPT ); Fri, 18 Sep 2009 07:41:54 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8IBfw4Q025462 for ; Fri, 18 Sep 2009 07:41:58 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8IBfa8t017440; Fri, 18 Sep 2009 07:41:53 -0400 From: Juan Quintela To: kvm@vger.kernel.org Subject: [PATCH 10/24] Prin kvm options values as everything else Date: Fri, 18 Sep 2009 13:41:21 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Juan Quintela --- configure | 32 +++++++++----------------------- 1 files changed, 9 insertions(+), 23 deletions(-) diff --git a/configure b/configure index 4512686..22d393b 100755 --- a/configure +++ b/configure @@ -2050,6 +2050,9 @@ fi if test "$need_offsetof" = "yes" ; then echo "CONFIG_NEED_OFFSETOF=y" >> $config_host_mak fi +if test $cpu_emulation = "no"; then + echo "NO_CPU_EMULATION=1" >> $config_host_mak +fi # XXX: suppress that if [ "$bsd" = "yes" ] ; then @@ -2222,28 +2225,6 @@ interp_prefix1=`echo "$interp_prefix" | sed "s/%M/$target_arch2/g"` echo "CONFIG_QEMU_PREFIX=\"$interp_prefix1\"" >> $config_mak gdb_xml_files="" -disable_cpu_emulation() { - if test $cpu_emulation = "no"; then - echo "#define NO_CPU_EMULATION 1" >> $config_host_h - echo "NO_CPU_EMULATION=1" >> $config_host_mak - fi -} - -configure_kvm() { - if test "$kvm" = "yes" -a "$target_softmmu" = "yes" -a \ - \( "$cpu" = "i386" -o "$cpu" = "x86_64" -o "$cpu" = "ia64" -o "$cpu" = "powerpc" \); then - echo "CONFIG_KVM=y" >> $config_mak - echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak - if test $kvm_cap_pit = "yes" ; then - echo "USE_KVM_PIT=1" >> $config_mak - fi - if test $kvm_cap_device_assignment = "yes" ; then - echo "USE_KVM_DEVICE_ASSIGNMENT=1" >> $config_mak - fi - disable_cpu_emulation - fi -} - TARGET_ARCH="$target_arch2" TARGET_BASE_ARCH="" TARGET_ABI_DIR="" @@ -2386,7 +2367,12 @@ case "$target_arch2" in \( "$target_arch2" = "i386" -a "$cpu" = "x86_64" \) \) ; then echo "CONFIG_KVM=y" >> $config_mak echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak - configure_kvm + if test $kvm_cap_pit = "yes" ; then + echo "USE_KVM_PIT=1" >> $config_mak + fi + if test $kvm_cap_device_assignment = "yes" ; then + echo "USE_KVM_DEVICE_ASSIGNMENT=1" >> $config_mak + fi fi esac echo "TARGET_PHYS_ADDR_BITS=$target_phys_bits" >> $config_mak