• Sean Christopherson's avatar
    KVM: vmx: Add defines for SGX ENCLS exiting · 802ec461
    Sean Christopherson authored
    Hardware support for basic SGX virtualization adds a new execution
    control (ENCLS_EXITING), VMCS field (ENCLS_EXITING_BITMAP) and exit
    reason (ENCLS), that enables a VMM to intercept specific ENCLS leaf
    functions, e.g. to inject faults when the VMM isn't exposing SGX to
    a VM.  When ENCLS_EXITING is enabled, the VMM can set/clear bits in
    the bitmap to intercept/allow ENCLS leaf functions in non-root, e.g.
    setting bit 2 in the ENCLS_EXITING_BITMAP will cause ENCLS[EINIT]
    to VMExit(ENCLS).
    
    Note: EXIT_REASON_ENCLS was previously added by commit 1f519992
    ("KVM: VMX: add missing exit reasons").
    Signed-off-by: default avatarSean Christopherson <sean.j.christopherson@intel.com>
    Message-Id: <20180814163334.25724-2-sean.j.christopherson@intel.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    802ec461
vmx.h 23.9 KB