kvm: svm: Add SEV feature definitions to KVM
authorTom Lendacky <[email protected]>
Mon, 4 Dec 2017 16:57:24 +0000 (10:57 -0600)
committerBrijesh Singh <[email protected]>
Mon, 4 Dec 2017 16:57:24 +0000 (10:57 -0600)
Define the SEV enable bit for the VMCB control structure. The hypervisor
will use this bit to enable SEV in the guest.

Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: "Radim Krčmář" <[email protected]>
Cc: Joerg Roedel <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Tom Lendacky <[email protected]>
Signed-off-by: Brijesh Singh <[email protected]>
Reviewed-by: Borislav Petkov <[email protected]>
arch/x86/include/asm/svm.h

index c936c9824405c6a917027949aa316486ce967bcd..0487ac0548704da1d0bbb6149aa25ffc0d0ce7d6 100644 (file)
@@ -147,6 +147,7 @@ struct __attribute__ ((__packed__)) vmcb_control_area {
 #define SVM_VM_CR_SVM_DIS_MASK  0x0010ULL
 
 #define SVM_NESTED_CTL_NP_ENABLE       BIT(0)
+#define SVM_NESTED_CTL_SEV_ENABLE      BIT(1)
 
 struct __attribute__ ((__packed__)) vmcb_seg {
        u16 selector;