[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a24884ac-452e-751f-fb3e-82b3a9978ed1@linux.intel.com>
Date: Mon, 10 May 2021 08:52:14 -0700
From: Andi Kleen <ak@...ux.intel.com>
To: Juergen Gross <jgross@...e.com>, Borislav Petkov <bp@...en8.de>,
Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@...ux.intel.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Andy Lutomirski <luto@...nel.org>,
Dave Hansen <dave.hansen@...el.com>,
Dan Williams <dan.j.williams@...el.com>,
Tony Luck <tony.luck@...el.com>,
Kirill Shutemov <kirill.shutemov@...ux.intel.com>,
Kuppuswamy Sathyanarayanan <knsathya@...nel.org>,
Raj Ashok <ashok.raj@...el.com>,
Sean Christopherson <seanjc@...gle.com>,
linux-kernel@...r.kernel.org
Subject: Re: [RFC v2 01/32] x86/paravirt: Introduce CONFIG_PARAVIRT_XL
\
>>> CONFIG_PARAVIRT_XL will be used by TDX that needs couple of paravirt
>>> calls that were hidden under CONFIG_PARAVIRT_XXL, but the rest of the
>>> config would be a bloat for TDX.
>>
>> Used how? Why is it bloat for TDX?
>
> Is there any major downside to move the halt related pvops functions
> from CONFIG_PARAVIRT_XXL to CONFIG_PARAVIRT?
I think the main motivation is to get rid of all the page table related
hooks for modern configurations. These are the bulk of the annotations
and cause bloat and worse code. Shadow page tables are really obscure
these days and very few people still need them and it's totally
reasonable to build even widely used distribution kernels without them.
On contrast most of the other hooks are comparatively few and also on
comparatively slow paths, so don't really matter too much.
I think it would be ok to have a CONFIG_PARAVIRT that does not have page
table support, and a separate config option for those (that could be
eventually deprecated).
But that would break existing .configs for those shadow stack users,
that's why I think Kirill did it the other way around.
-Andi
Powered by blists - more mailing lists