mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
KVM: SVM: add GMET bit definitions
GMET (Guest Mode Execute Trap) is an AMD virtualization feature, essentially the nested paging version of SMEP. Hyper-V uses it; add it in preparation for making it available to hypervisors running under KVM. Acked-by: Borislav Petkov (AMD) <bp@alien8.de> Tested-by: David Riley <d.riley@proxmox.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
978598a230
commit
7658b9343a
|
|
@ -379,6 +379,7 @@
|
|||
#define X86_FEATURE_AVIC (15*32+13) /* "avic" Virtual Interrupt Controller */
|
||||
#define X86_FEATURE_V_VMSAVE_VMLOAD (15*32+15) /* "v_vmsave_vmload" Virtual VMSAVE VMLOAD */
|
||||
#define X86_FEATURE_VGIF (15*32+16) /* "vgif" Virtual GIF */
|
||||
#define X86_FEATURE_GMET (15*32+17) /* Guest Mode Execution Trap */
|
||||
#define X86_FEATURE_X2AVIC (15*32+18) /* "x2avic" Virtual x2apic */
|
||||
#define X86_FEATURE_V_SPEC_CTRL (15*32+20) /* "v_spec_ctrl" Virtual SPEC_CTRL */
|
||||
#define X86_FEATURE_VNMI (15*32+25) /* "vnmi" Virtual NMI */
|
||||
|
|
|
|||
|
|
@ -243,6 +243,7 @@ struct __attribute__ ((__packed__)) vmcb_control_area {
|
|||
#define SVM_MISC_ENABLE_NP BIT(0)
|
||||
#define SVM_MISC_ENABLE_SEV BIT(1)
|
||||
#define SVM_MISC_ENABLE_SEV_ES BIT(2)
|
||||
#define SVM_MISC_ENABLE_GMET BIT(3)
|
||||
|
||||
#define SVM_MISC2_ENABLE_V_LBR BIT_ULL(0)
|
||||
#define SVM_MISC2_ENABLE_V_VMLOAD_VMSAVE BIT_ULL(1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user