Just in case somebody else needs this. Below is a patch which
allows building qemu-kvm-0.15 unter CentOS 5.6 with vanilla
kernel 126.96.36.199 and (optionally) vde2 .
FYI: qemu-kvm-0.15 compiles fine on CentOS 6 with distro-kernel,
no patches needed.
For CentOS 5.6, unpack 0.15 qemu-kvm tarball , apply the path
below, configure and compile. Make sure to export the kernel include
path before building, otherwise the kernel mman-common.h header
won't be found:
The patch also adds some #error pragmas to make sure that
KSM is used. This isn't a requirement to run, though.
If you'd like to use vde2 too, then additionally export the paths to
the vde2 installation (here: /opt/vde2) before configure (if vde2 is
not installed in /opt/vde2 then change your paths accordingly):
With the above, ./configure --enable-vde works (for me).
I'm posting this here, rather than on a kvm list, because this is
rather CentOS 5 specific, IMHO.
Anyways, if you reply to this, please be sure to add a CC: to my email
address. While I am subscribed to this list, your email might get buried
by the list traffic. Thanks.
PS: The g_strcmp0() function was ripped from the URL below, just happened to be
on top of Google's search results. (c) therefore of authors "Sysadmin Ramblings".