939,940c939,944
< # 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 <linux/kvm.h>') != 0
942c946
< print "Info: Header file <linux/kvm.h> not found, " \
---
> print "Info: Compatible header file <linux/kvm.h> not found, " \