* [PATCH 1/2] qemu-kvm: Use kvm-kmod headers if available
@ 2010-01-12 21:21 Jan Kiszka
2010-01-21 16:08 ` Marcelo Tosatti
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2010-01-12 21:21 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti; +Cc: Gleb Natapov, kvm
Since kvm-kmod-2.6.32.2 we have an alternative source for recent KVM
kernel headers. Use it when available and not overruled by --kerneldir.
If there is no kvm-kmod and no --kerneldir, we continue to fall back to
the qemu-kvm's kernel headers.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
configure | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 20c374a..6ba565a 100755
--- a/configure
+++ b/configure
@@ -1424,6 +1424,8 @@ EOF
kvm_cflags="$kvm_cflags -I$kerneldir/arch/$cpu/include"
fi
else
+ kvm_cflags=`pkg-config --cflags kvm-kmod 2> /dev/null`
+ if test "$kvm_cflags" = ""; then
case "$cpu" in
i386 | x86_64)
kvm_arch="x86"
@@ -1438,6 +1440,7 @@ EOF
kvm_cflags="-I$source_path/kvm/include"
kvm_cflags="$kvm_cflags -include $source_path/kvm/include/linux/config.h"
kvm_cflags="$kvm_cflags -I$source_path/kvm/include/$kvm_arch"
+ fi
fi
kvm_cflags="$kvm_cflags -idirafter $source_path/compat"
if compile_prog "$kvm_cflags" "" ; then
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] qemu-kvm: Use kvm-kmod headers if available
2010-01-12 21:21 [PATCH 1/2] qemu-kvm: Use kvm-kmod headers if available Jan Kiszka
@ 2010-01-21 16:08 ` Marcelo Tosatti
0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2010-01-21 16:08 UTC (permalink / raw)
To: Jan Kiszka; +Cc: Avi Kivity, Gleb Natapov, kvm
On Tue, Jan 12, 2010 at 10:21:27PM +0100, Jan Kiszka wrote:
> Since kvm-kmod-2.6.32.2 we have an alternative source for recent KVM
> kernel headers. Use it when available and not overruled by --kerneldir.
> If there is no kvm-kmod and no --kerneldir, we continue to fall back to
> the qemu-kvm's kernel headers.
Applied both, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-21 18:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-12 21:21 [PATCH 1/2] qemu-kvm: Use kvm-kmod headers if available Jan Kiszka
2010-01-21 16:08 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox