[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y8F3Eo2lKB4hupQI@google.com>
Date: Fri, 13 Jan 2023 15:21:54 +0000
From: Sean Christopherson <seanjc@...gle.com>
To: Zhi Wang <zhi.wang.linux@...il.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,
Sagi Shahar <sagis@...gle.com>,
David Matlack <dmatlack@...gle.com>
Subject: Re: [PATCH v11 013/113] x86/cpu: Add helper functions to
allocate/free TDX private host key id
On Fri, Jan 13, 2023, Zhi Wang wrote:
> On Thu, 12 Jan 2023 08:31:21 -0800 isaku.yamahata@...el.com wrote:
> > @@ -132,6 +136,31 @@ static struct notifier_block tdx_memory_nb = {
> > .notifier_call = tdx_memory_notifier,
> > };
> >
> > +/* TDX KeyID pool */
> > +static DEFINE_IDA(tdx_keyid_pool);
> > +
> > +int tdx_keyid_alloc(void)
> > +{
> > + if (WARN_ON_ONCE(!tdx_keyid_start || !nr_tdx_keyids))
> > + return -EINVAL;
>
> Better mention that tdx_keyid_start and nr_tdx_keyids are defined in
> another patches.
Eh, no need. That sort of information doesn't belong in the changelog because
when this code is merged it will be a natural sequence. The cover letter
explicitly calls out that this needs the kernel patches[*]. A footnote could be
added, but asking Isaku and co. to document every external dependency is asking
too much IMO.
[*] https://lore.kernel.org/lkml/cover.1670566861.git.kai.huang@intel.com
Powered by blists - more mailing lists