]> err.no Git - linux-2.6/commitdiff
KVM: Advertise synchronized mmu support to userspace
authorAvi Kivity <avi@qumranet.com>
Tue, 29 Jul 2008 08:30:57 +0000 (11:30 +0300)
committerAvi Kivity <avi@qumranet.com>
Tue, 29 Jul 2008 09:34:02 +0000 (12:34 +0300)
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86.c
include/linux/kvm.h

index c7b01efe06469627b32d0e850a76347a5fbb9e40..0d682fc6aeb333c382e6b9324105e2eb941bc545 100644 (file)
@@ -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:
index 0ea064cbfbc8660a7119a22546165ca3ec3387cd..69511f74f912682e69e4d49a9abf5198c0a4bfa3 100644 (file)
@@ -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