KVM: VMX: Enable Notify VM exit
[linux-2.6-microblaze.git] / arch / x86 / include / asm / kvm_host.h
index 4e00bca..6cf5d77 100644 (file)
@@ -65,6 +65,9 @@
 #define KVM_BUS_LOCK_DETECTION_VALID_MODE      (KVM_BUS_LOCK_DETECTION_OFF | \
                                                 KVM_BUS_LOCK_DETECTION_EXIT)
 
+#define KVM_X86_NOTIFY_VMEXIT_VALID_BITS       (KVM_X86_NOTIFY_VMEXIT_ENABLED | \
+                                                KVM_X86_NOTIFY_VMEXIT_USER)
+
 /* x86-specific vcpu->requests bit members */
 #define KVM_REQ_MIGRATE_TIMER          KVM_ARCH_REQ(0)
 #define KVM_REQ_REPORT_TPR_ACCESS      KVM_ARCH_REQ(1)
@@ -1178,6 +1181,9 @@ struct kvm_arch {
 
        bool bus_lock_detection_enabled;
        bool enable_pmu;
+
+       u32 notify_window;
+       u32 notify_vmexit_flags;
        /*
         * If exit_on_emulation_error is set, and the in-kernel instruction
         * emulator fails to emulate an instruction, allow userspace
@@ -1325,6 +1331,7 @@ struct kvm_vcpu_stat {
        u64 directed_yield_attempted;
        u64 directed_yield_successful;
        u64 guest_mode;
+       u64 notify_window_exits;
 };
 
 struct x86_instruction_info;