diff -r 2935441b0870 -r d1c321ce2faf SConstruct --- a/SConstruct Mon Sep 30 12:20:53 2013 +0200 +++ b/SConstruct Mon Sep 30 18:34:49 2013 +0100 @@ -932,10 +932,14 @@ print "Warning: Header file not found." print " This host has no IEEE FP rounding mode control." -# Check if we should enable KVM-based hardware virtualization -have_kvm = conf.CheckHeader('linux/kvm.h', '<>') +# Check if we should enable KVM-based hardware virtualization. The API +# we rely on exists since version 2.6.36 of the kernel, but somehow +# the KVM_API_VERSION does not reflect the change. We test for one of +# the types as a fall back. +have_kvm = conf.CheckHeader('linux/kvm.h', '<>') and \ + conf.CheckTypeSize('struct kvm_xsave', '#include ') != 0 if not have_kvm: - print "Info: Header file not found, " \ + print "Info: Compatible header file not found, " \ "disabling KVM support." # Check if the requested target ISA is compatible with the host