Re: [PATCH v19 098/130] KVM: TDX: Add a place holder to handle TDX VM exit

Isaku Yamahata
2024-04-15T22:58:12Z

On Tue, Apr 09, 2024 at 06:36:01PM +0800,
Binbin Wu <binbin.wu@linux.intel.com> wrote:

> > + return 1;
> > +
> > + /*
> > + * TDH.VP.ENTRY
>
> "TDH.VP.ENTRY" -> "TDH.VP.ENTER"
>
> > checks TD EPOCH which contend with TDH.MEM.TRACK and
> > + * vcpu TDH.VP.ENTER.
> Do you mean TDH.VP.ENTER on one vcpu can contend with TDH.MEM.TRACK and
> TDH.VP.ENTER on another vcpu?

Yes. The caller of TDH.MEM.TRACK() must ensure that other vCPUS go through
inactive (not running vCPU) after TDH.MEM.TRACK().
--
Isaku Yamahata <isaku.yamahata@intel.com>