[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d3375b508b0d3b53a6ac7fff5e5494613cee47a9.camel@intel.com>
Date: Fri, 26 Sep 2025 22:41:53 +0000
From: "Edgecombe, Rick P" <rick.p.edgecombe@...el.com>
To: "kvm@...r.kernel.org" <kvm@...r.kernel.org>, "linux-coco@...ts.linux.dev"
<linux-coco@...ts.linux.dev>, "Huang, Kai" <kai.huang@...el.com>, "Zhao, Yan
Y" <yan.y.zhao@...el.com>, "dave.hansen@...ux.intel.com"
<dave.hansen@...ux.intel.com>, "kas@...nel.org" <kas@...nel.org>,
"seanjc@...gle.com" <seanjc@...gle.com>, "mingo@...hat.com"
<mingo@...hat.com>, "pbonzini@...hat.com" <pbonzini@...hat.com>,
"tglx@...utronix.de" <tglx@...utronix.de>, "Yamahata, Isaku"
<isaku.yamahata@...el.com>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "Annapurve, Vishal" <vannapurve@...gle.com>,
"Gao, Chao" <chao.gao@...el.com>, "bp@...en8.de" <bp@...en8.de>,
"x86@...nel.org" <x86@...nel.org>
CC: "kirill.shutemov@...ux.intel.com" <kirill.shutemov@...ux.intel.com>
Subject: Re: [PATCH v3 07/16] x86/virt/tdx: Add tdx_alloc/free_page() helpers
On Mon, 2025-09-22 at 11:27 +0000, Huang, Kai wrote:
> > +
> > + /*
> > + * It might have come from 'prealloc', but this is
> > an error
> > + * path. Don't be fancy, just free them.
> > TDH.PHYMEM.PAMT.ADD
> > + * only modifies RAX, so the encoded array is
> > still in place.
> > + */
> > + __free_page(phys_to_page(pa_array[i]));
> >
>
> This comment shouldn't be in this patch? The 'prealloc' concept
> doesn't
> exist yet until patch 12 AFAICT.
Oh, yep. The comment should be added when prealloc starts getting used.
Powered by blists - more mailing lists