summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoraliguori2008-12-09 20:59:09 +0100
committeraliguori2008-12-09 20:59:09 +0100
commitd85dc283fa87353be10b11b463196d10eb49ca41 (patch)
tree080330bfa46e1d5e9ac05d2dcf0e0f6b28f03177 /configure
parentlinux-user: mremap(): handle MREMAP_FIXED and MREMAP_MAYMOVE correctly (diff)
downloadqemu-d85dc283fa87353be10b11b463196d10eb49ca41.tar.gz
qemu-d85dc283fa87353be10b11b463196d10eb49ca41.tar.xz
qemu-d85dc283fa87353be10b11b463196d10eb49ca41.zip
Disable KVM support if the kernel modules have broken memory slot handling
Prior to kvm-80, memory slot deletion was broken in the KVM kernel modules. In kvm-81, a new capability is introduced to signify that this problem has been fixed. Since we rely on being able to delete memory slots, refuse to work with any kernel module that does not have this capability present. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5960 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index b90c47f0cf..13f6358d4c 100755
--- a/configure
+++ b/configure
@@ -933,7 +933,8 @@ if test "$kvm" = "yes" ; then
KVM_API_VERSION < 12 || \
KVM_API_VERSION > 12 || \
!defined(KVM_CAP_USER_MEMORY) || \
- !defined(KVM_CAP_SET_TSS_ADDR)
+ !defined(KVM_CAP_SET_TSS_ADDR) || \
+ !defined(KVM_CAP_DESTROY_MEMORY_REGION_WORKS)
#error Invalid KVM version
#endif
int main(void) { return 0; }