diff options
author | Avi Kivity <avi@qumranet.com> | 2008-07-29 11:30:57 +0300 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-07-29 12:34:02 +0300 |
commit | ed8486243379ef3e6c61363df915882945c0eaec (patch) | |
tree | 5504b545fc236d192be34a4a68de7b74c64f70e9 | |
parent | e930bffe95e1e886a1ede80726ea38df5838d067 (diff) | |
download | blackbird-op-linux-ed8486243379ef3e6c61363df915882945c0eaec.tar.gz blackbird-op-linux-ed8486243379ef3e6c61363df915882945c0eaec.zip |
KVM: Advertise synchronized mmu support to userspace
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r-- | arch/x86/kvm/x86.c | 1 | ||||
-rw-r--r-- | include/linux/kvm.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index c7b01efe0646..0d682fc6aeb3 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -883,6 +883,7 @@ int kvm_dev_ioctl_check_extension(long ext) case KVM_CAP_PIT: case KVM_CAP_NOP_IO_DELAY: case KVM_CAP_MP_STATE: + case KVM_CAP_SYNC_MMU: r = 1; break; case KVM_CAP_COALESCED_MMIO: diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 0ea064cbfbc8..69511f74f912 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h @@ -371,6 +371,7 @@ struct kvm_trace_rec { #define KVM_CAP_PV_MMU 13 #define KVM_CAP_MP_STATE 14 #define KVM_CAP_COALESCED_MMIO 15 +#define KVM_CAP_SYNC_MMU 16 /* Changes to host mmap are reflected in guest */ /* * ioctls for VM fds |