kvm: libkvm: add kvm_has_sync_mmu
commit501797e19c7282e9579686bd80feff3754a7ccca
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 22 Aug 2008 23:03:34 +0000 (22 20:03 -0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 25 Aug 2008 10:19:52 +0000 (25 13:19 +0300)
tree2bd2924b07642eb0e3f5f6ac4cffe51147a033ea
parentc80d19d7f77521bb55c7a36deb5f559ccebce22c
kvm: libkvm: add kvm_has_sync_mmu

This patch adds a kvm_has_sync_mmu routine to libkvm.  This allows
userspace to query the existence of mmu notifiers which is important for
ballooning since madvise() is not safe from userspace without it.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
libkvm/libkvm.c
libkvm/libkvm.h