lkml.org 
[lkml]   [2021]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH v2 58/69] KVM: TDX: Define TDCALL exit reason
    Date
    From: Sean Christopherson <sean.j.christopherson@intel.com>

    Define the TDCALL exit reason, which is carved out from the VMX exit
    reason namespace as the TDCALL exit from TDX guest to TDX-SEAM is really
    just a VM-Exit.

    Co-developed-by: Xiaoyao Li <xiaoyao.li@intel.com>
    Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
    Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
    Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
    ---
    arch/x86/include/uapi/asm/vmx.h | 4 +++-
    1 file changed, 3 insertions(+), 1 deletion(-)

    diff --git a/arch/x86/include/uapi/asm/vmx.h b/arch/x86/include/uapi/asm/vmx.h
    index 946d761adbd3..ba5908dfc7c0 100644
    --- a/arch/x86/include/uapi/asm/vmx.h
    +++ b/arch/x86/include/uapi/asm/vmx.h
    @@ -91,6 +91,7 @@
    #define EXIT_REASON_UMWAIT 67
    #define EXIT_REASON_TPAUSE 68
    #define EXIT_REASON_BUS_LOCK 74
    +#define EXIT_REASON_TDCALL 77

    #define VMX_EXIT_REASONS \
    { EXIT_REASON_EXCEPTION_NMI, "EXCEPTION_NMI" }, \
    @@ -153,7 +154,8 @@
    { EXIT_REASON_XRSTORS, "XRSTORS" }, \
    { EXIT_REASON_UMWAIT, "UMWAIT" }, \
    { EXIT_REASON_TPAUSE, "TPAUSE" }, \
    - { EXIT_REASON_BUS_LOCK, "BUS_LOCK" }
    + { EXIT_REASON_BUS_LOCK, "BUS_LOCK" }, \
    + { EXIT_REASON_TDCALL, "TDCALL" }

    #define VMX_EXIT_REASON_FLAGS \
    { VMX_EXIT_REASONS_FAILED_VMENTRY, "FAILED_VMENTRY" }
    --
    2.25.1
    \
     
     \ /
      Last update: 2021-07-03 00:07    [W:16.538 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site