summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2018-10-16 18:50:09 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-10-17 00:30:19 +0200
commit8cab6507f64eff0ccfea01fccbc7e3e05e2aaf7e (patch)
treed2fbccdfbddb062b027360c66c4b06c4d2da2c09 /arch/x86/include
parent1e7ecd1b3d21a6302f3ee4a3720f682eb2467a3c (diff)
downloadlinux-8cab6507f64eff0ccfea01fccbc7e3e05e2aaf7e.tar.gz
linux-8cab6507f64eff0ccfea01fccbc7e3e05e2aaf7e.tar.bz2
linux-8cab6507f64eff0ccfea01fccbc7e3e05e2aaf7e.zip
x86/kvm/nVMX: nested state migration for Enlightened VMCS
Add support for get/set of nested state when Enlightened VMCS is in use. A new KVM_STATE_NESTED_EVMCS flag to indicate eVMCS on the vCPU was enabled is added. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/uapi/asm/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/uapi/asm/kvm.h b/arch/x86/include/uapi/asm/kvm.h
index fd23d5778ea1..ab76aa1d3a4d 100644
--- a/arch/x86/include/uapi/asm/kvm.h
+++ b/arch/x86/include/uapi/asm/kvm.h
@@ -381,6 +381,7 @@ struct kvm_sync_regs {
#define KVM_STATE_NESTED_GUEST_MODE 0x00000001
#define KVM_STATE_NESTED_RUN_PENDING 0x00000002
+#define KVM_STATE_NESTED_EVMCS 0x00000004
#define KVM_STATE_NESTED_SMM_GUEST_MODE 0x00000001
#define KVM_STATE_NESTED_SMM_VMXON 0x00000002