[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5f7891ebecb8dbe71b9e2c67332df716f0b9a8e0.camel@intel.com>
Date: Tue, 10 Jan 2023 11:01:31 +0000
From: "Huang, Kai" <kai.huang@...el.com>
To: "kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"Hansen, Dave" <dave.hansen@...el.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: "Luck, Tony" <tony.luck@...el.com>,
"bagasdotme@...il.com" <bagasdotme@...il.com>,
"ak@...ux.intel.com" <ak@...ux.intel.com>,
"Wysocki, Rafael J" <rafael.j.wysocki@...el.com>,
"kirill.shutemov@...ux.intel.com" <kirill.shutemov@...ux.intel.com>,
"Christopherson,, Sean" <seanjc@...gle.com>,
"Chatre, Reinette" <reinette.chatre@...el.com>,
"pbonzini@...hat.com" <pbonzini@...hat.com>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"Yamahata, Isaku" <isaku.yamahata@...el.com>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"Shahar, Sagi" <sagis@...gle.com>,
"imammedo@...hat.com" <imammedo@...hat.com>,
"Gao, Chao" <chao.gao@...el.com>,
"Brown, Len" <len.brown@...el.com>,
"peterz@...radead.org" <peterz@...radead.org>,
"sathyanarayanan.kuppuswamy@...ux.intel.com"
<sathyanarayanan.kuppuswamy@...ux.intel.com>,
"Huang, Ying" <ying.huang@...el.com>,
"Williams, Dan J" <dan.j.williams@...el.com>
Subject: Re: [PATCH v8 11/16] x86/virt/tdx: Designate reserved areas for all
TDMRs
On Tue, 2023-01-10 at 01:19 +0000, Huang, Kai wrote:
> > I think the -E2BIG is also wrong. It should be ENOSPC. I'd also add a
> > pr_warn() there. Especially with how lazy this whole thing is, I can
> > start to see how the reserved areas might be exhausted. Let's be kind
> > to our future selves and make the error (and the fix) easier to find.
>
> Yes agreed. Will change to -ENOSPC and add pr_warn().
Btw, in patch ("x86/virt/tdx: Fill out TDMRs to cover all TDX memory regions"),
when there are too many TDMRs, I suppose I should also return -ENOSPC instead of
-E2BIG?
Powered by blists - more mailing lists