[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230313191658.GB3922605@ls.amr.corp.intel.com>
Date: Mon, 13 Mar 2023 12:16:58 -0700
From: Isaku Yamahata <isaku.yamahata@...il.com>
To: Xiaoyao Li <xiaoyao.li@...el.com>
Cc: isaku.yamahata@...el.com, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, isaku.yamahata@...il.com,
Paolo Bonzini <pbonzini@...hat.com>, erdemaktas@...gle.com,
Sean Christopherson <seanjc@...gle.com>,
Sagi Shahar <sagis@...gle.com>,
David Matlack <dmatlack@...gle.com>,
Kai Huang <kai.huang@...el.com>,
Zhi Wang <zhi.wang.linux@...il.com>,
Sean Christopherson <sean.j.christopherson@...el.com>
Subject: Re: [PATCH v13 009/113] KVM: TDX: Define TDX architectural
definitions
On Mon, Mar 13, 2023 at 07:37:43PM +0800,
Xiaoyao Li <xiaoyao.li@...el.com> wrote:
> On 3/13/2023 1:55 AM, isaku.yamahata@...el.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.
Good suggestion. Let me fix it.
--
Isaku Yamahata <isaku.yamahata@...il.com>
Powered by blists - more mailing lists