[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a93dbbb7f80d1e02fe811e8a00049a8ed37c9792.camel@intel.com>
Date: Thu, 5 Dec 2024 17:33:23 +0000
From: "Edgecombe, Rick P" <rick.p.edgecombe@...el.com>
To: "kvm@...r.kernel.org" <kvm@...r.kernel.org>, "pbonzini@...hat.com"
<pbonzini@...hat.com>, "Hansen, Dave" <dave.hansen@...el.com>,
"seanjc@...gle.com" <seanjc@...gle.com>
CC: "Huang, Kai" <kai.huang@...el.com>, "x86@...nel.org" <x86@...nel.org>,
"binbin.wu@...ux.intel.com" <binbin.wu@...ux.intel.com>, "Li, Xiaoyao"
<xiaoyao.li@...el.com>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "Zhao, Yan Y" <yan.y.zhao@...el.com>,
"tony.lindgren@...ux.intel.com" <tony.lindgren@...ux.intel.com>,
"isaku.yamahata@...il.com" <isaku.yamahata@...il.com>, "Hunter, Adrian"
<adrian.hunter@...el.com>, "Yamahata, Isaku" <isaku.yamahata@...el.com>
Subject: Re: [RFC PATCH v2 5/6] x86/virt/tdx: Add SEAMCALL wrappers for TDX
VM/vCPU field access
On Wed, 2024-12-04 at 11:57 -0800, Dave Hansen wrote:
> On 12/2/24 17:03, Rick Edgecombe wrote:
> > +u64 tdh_vp_wr(struct tdx_vp *vp, u64 field, u64 data, u64 mask)
> > +{
> > + struct tdx_module_args args = {
> > + .rcx = tdx_tdvpr_pa(vp),
> > + .rdx = field,
> > + .r8 = data,
> > + .r9 = mask,
> > + };
> > +
> > + return seamcall(TDH_VP_WR, &args);
> > +}
> > +EXPORT_SYMBOL_GPL(tdh_vp_wr);
>
> There's a bit more tweaking you could _probably_ do here like giving
> 'field' a real type that means something, probably an enum. But that's
> well into nitpicky territory and might not buy anything in practice.
>
> Overall this set looks fine to me. The types are much more safe and
> helpers are much more self-explanatory. So, for the series:
>
> Acked-by: Dave Hansen <dave.hansen@...ux.intel.com>
Thanks Dave!
We have two more batches of SEAMCALLs required for base support. A bunch for
managing the S-EPT, and the single multiplexed TDH.VP.ENTER one.
Next, Yan is going to take this general scheme and post another RFC series with
the S-EPT ones for review.
Powered by blists - more mailing lists