* [PATCH 2/2] qemu-kvm: Detect availability of kvm_para.h
@ 2010-01-12 21:21 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2010-01-12 21:21 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti; +Cc: Gleb Natapov, kvm
Will be required for upstream's KVM cpuid, so qemu-kvm will probably
morph towards conditional paravirt support as well, depending on
CONFIG_KVM_PARA. Make it available already.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
configure | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 6ba565a..b6bebac 100755
--- a/configure
+++ b/configure
@@ -226,6 +226,7 @@ curses=""
docs=""
fdt=""
kvm=""
+kvm_para=""
nptl=""
sdl=""
sparse="no"
@@ -1445,6 +1446,13 @@ EOF
kvm_cflags="$kvm_cflags -idirafter $source_path/compat"
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`" ] && \
@@ -2559,6 +2567,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
if test $kvm_cap_pit = "yes" ; then
echo "CONFIG_KVM_PIT=y" >> $config_target_mak
fi
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-12 21:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-12 21:21 [PATCH 2/2] qemu-kvm: Detect availability of kvm_para.h Jan Kiszka
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).