2012-10-28 18:05:07 +00:00
|
|
|
From b80fff00ed7f9baff808edb6c2c9f98f7e75e8ca Mon Sep 17 00:00:00 2001
|
2012-08-14 12:54:17 +00:00
|
|
|
From: Cole Robinson <crobinso@redhat.com>
|
|
|
|
Date: Mon, 13 Aug 2012 18:39:54 -0400
|
|
|
|
Subject: [PATCH] configure: Add --disable-kvm-options
|
|
|
|
|
|
|
|
In Fedora, our qemu package is based on qemu-kvm, and we go to convoluted
|
|
|
|
lengths to provide a qemu-kvm binary with KVM on by default, but all
|
|
|
|
qemu-system-* with KVM off by default (using ./configure --disable-kvm)
|
|
|
|
|
|
|
|
For qemu-system*, what we really want is upstream qemu symantics of TCG
|
|
|
|
by default, but the opt in option for KVM. CONFIG_KVM_OPTIONS fits the
|
|
|
|
bill, so let's expose it through ./configure. This will also simplify
|
|
|
|
our packaging for non-x86 KVM.
|
|
|
|
|
|
|
|
Signed-off-by: Cole Robinson <crobinso@redhat.com>
|
|
|
|
---
|
|
|
|
configure | 11 ++++++++++-
|
|
|
|
1 file changed, 10 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/configure b/configure
|
2012-10-28 18:05:07 +00:00
|
|
|
index f019526..933754d 100755
|
2012-08-14 12:54:17 +00:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2012-10-28 18:05:07 +00:00
|
|
|
@@ -210,6 +210,7 @@ bsd_user="no"
|
2012-08-28 15:15:48 +00:00
|
|
|
guest_base=""
|
2012-08-14 12:54:17 +00:00
|
|
|
uname_release=""
|
|
|
|
mixemu="no"
|
|
|
|
+kvmoptions="yes"
|
|
|
|
aix="no"
|
|
|
|
blobs="yes"
|
|
|
|
pkgversion=" ($(kvm_version))"
|
2012-10-28 18:05:07 +00:00
|
|
|
@@ -732,6 +733,8 @@ for opt do
|
2012-08-14 12:54:17 +00:00
|
|
|
;;
|
|
|
|
--enable-kvm) kvm="yes"
|
|
|
|
;;
|
|
|
|
+ --disable-kvm-options) kvmoptions="no"
|
|
|
|
+ ;;
|
|
|
|
--disable-tcg-interpreter) tcg_interpreter="no"
|
|
|
|
;;
|
|
|
|
--enable-tcg-interpreter) tcg_interpreter="yes"
|
2012-10-28 18:05:07 +00:00
|
|
|
@@ -1080,6 +1083,8 @@ echo " --enable-bluez enable bluez stack connectivity"
|
2012-08-14 12:54:17 +00:00
|
|
|
echo " --disable-slirp disable SLIRP userspace network connectivity"
|
|
|
|
echo " --disable-kvm disable KVM acceleration support"
|
|
|
|
echo " --enable-kvm enable KVM acceleration support"
|
|
|
|
+echo " --disable-kvm-options if KVM is enabled, default to KVM=off, and"
|
|
|
|
+echo " remove non-upstream cli options"
|
|
|
|
echo " --enable-tcg-interpreter enable TCG with bytecode interpreter (TCI)"
|
2012-08-28 15:15:48 +00:00
|
|
|
echo " --disable-nptl disable usermode NPTL support"
|
|
|
|
echo " --enable-nptl enable usermode NPTL support"
|
2012-10-28 18:05:07 +00:00
|
|
|
@@ -3160,6 +3165,7 @@ echo "ATTR/XATTR support $attr"
|
2012-08-28 15:15:48 +00:00
|
|
|
echo "Install blobs $blobs"
|
2012-08-14 12:54:17 +00:00
|
|
|
echo "KVM support $kvm"
|
|
|
|
echo "TCG interpreter $tcg_interpreter"
|
|
|
|
+echo "KVM CLI options $kvmoptions"
|
|
|
|
echo "fdt support $fdt"
|
|
|
|
echo "preadv support $preadv"
|
|
|
|
echo "fdatasync $fdatasync"
|
2012-10-28 18:05:07 +00:00
|
|
|
@@ -3893,7 +3899,10 @@ case "$target_arch2" in
|
2012-08-14 12:54:17 +00:00
|
|
|
\( "$target_arch2" = "x86_64" -a "$cpu" = "i386" \) -o \
|
|
|
|
\( "$target_arch2" = "i386" -a "$cpu" = "x86_64" \) \) ; then
|
|
|
|
echo "CONFIG_KVM=y" >> $config_target_mak
|
|
|
|
- echo "CONFIG_KVM_OPTIONS=y" >> $config_host_mak
|
|
|
|
+
|
|
|
|
+ if test "$kvmoptions" = "yes" ; then
|
|
|
|
+ echo "CONFIG_KVM_OPTIONS=y" >> $config_host_mak
|
|
|
|
+ fi
|
|
|
|
if test "$vhost_net" = "yes" ; then
|
|
|
|
echo "CONFIG_VHOST_NET=y" >> $config_target_mak
|
|
|
|
fi
|
|
|
|
--
|
2012-10-28 18:05:07 +00:00
|
|
|
1.7.12.1
|
2012-08-14 12:54:17 +00:00
|
|
|
|