lkml.org 
[lkml]   [2023]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH v13 009/113] KVM: TDX: Define TDX architectural definitions
    From
    On 3/13/2023 1:55 AM, isaku.yamahata@intel.com wrote:
    > diff --git a/arch/x86/kvm/vmx/tdx_arch.h b/arch/x86/kvm/vmx/tdx_arch.h
    > new file mode 100644
    > index 000000000000..942a0e561a7b
    > --- /dev/null
    > +++ b/arch/x86/kvm/vmx/tdx_arch.h
    ...
    > +
    > +#define TDG_VP_VMCALL_GET_TD_VM_CALL_INFO 0x10000
    > +#define TDG_VP_VMCALL_MAP_GPA 0x10001
    > +#define TDG_VP_VMCALL_GET_QUOTE 0x10002
    > +#define TDG_VP_VMCALL_REPORT_FATAL_ERROR 0x10003
    > +#define TDG_VP_VMCALL_SETUP_EVENT_NOTIFY_INTERRUPT 0x10004

    TDX guest side implementation defines

    /* TDX hypercall Leaf IDs */
    #define TDVMCALL_MAP_GPA 0x10001
    #define TDVMCALL_REPORT_FATAL_ERROR 0x10003

    We need put these shared definitions between host and guest into some
    shared header file.

    \
     
     \ /
      Last update: 2023-03-27 00:56    [W:4.478 / U:0.108 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site