aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-01-12 19:53:48 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-01-12 14:32:19 -0600
commitdae5079acacc4e42e9583fbc326f81c08ab973d3 (patch)
treefd6ab1be697ab6275962f4d7d3f588dd86365d5a
parentffd8b67f5d90dd23aad5f549ed528228de8602e7 (diff)
kvm: Detect availability of kvm_para.h
Will be required for upcoming KVM cpuid leaf. Host kernels >= 2.6.32 as well as future kvm-kmod releases (more recent than kvm-kmod-2.6.32.3) do/will provide them. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 623c30e219..1ddb3a119a 100755
--- a/configure
+++ b/configure
@@ -216,6 +216,7 @@ curses=""
docs=""
fdt=""
kvm=""
+kvm_para=""
nptl=""
sdl=""
sparse="no"
@@ -1388,6 +1389,13 @@ EOF
fi
if compile_prog "$kvm_cflags" "" ; then
kvm=yes
+ cat > $TMPC <<EOF
+#include <linux/kvm_para.h>
+int main(void) { return 0; }
+EOF
+ if compile_prog "$kvm_cflags" "" ; then
+ kvm_para=yes
+ fi
else
if test "$kvm" = "yes" ; then
if [ -x "`which awk 2>/dev/null`" ] && \
@@ -2384,6 +2392,9 @@ case "$target_arch2" in
\( "$target_arch2" = "i386" -a "$cpu" = "x86_64" \) \) ; then
echo "CONFIG_KVM=y" >> $config_target_mak
echo "KVM_CFLAGS=$kvm_cflags" >> $config_target_mak
+ if test "$kvm_para" = "yes"; then
+ echo "CONFIG_KVM_PARA=y" >> $config_target_mak
+ fi
fi
esac
echo "TARGET_PHYS_ADDR_BITS=$target_phys_bits" >> $config_target_mak