Re: [PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance

2020-06-12 Thread Joerg Roedel
On Tue, Apr 28, 2020 at 05:17:14PM +0200, Joerg Roedel wrote: > From: Mike Stunes > > To avoid a future VMEXIT for a subsequent CPUID function, cache the > results returned by CPUID into an xarray. > > [tl: coding standard changes, register zero extension] > > Signed-off-by: Mike Stunes >

Re: [PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance

2020-05-27 Thread Tom Lendacky
On 5/26/20 4:19 AM, Borislav Petkov wrote: On Tue, May 19, 2020 at 10:16:37PM -0700, Sean Christopherson wrote: The whole cache on-demand approach seems like overkill. The number of CPUID leaves that are invoked after boot with any regularity can probably be counted on one hand. IIRC glibc

Re: [PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance

2020-05-27 Thread Tom Lendacky
On 4/28/20 10:17 AM, Joerg Roedel wrote: From: Mike Stunes To avoid a future VMEXIT for a subsequent CPUID function, cache the results returned by CPUID into an xarray. [tl: coding standard changes, register zero extension] Signed-off-by: Mike Stunes Signed-off-by: Tom Lendacky [

Re: [PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance

2020-05-26 Thread Borislav Petkov
On Tue, May 19, 2020 at 10:16:37PM -0700, Sean Christopherson wrote: > The whole cache on-demand approach seems like overkill. The number of CPUID > leaves that are invoked after boot with any regularity can probably be counted > on one hand. IIRC glibc invokes CPUID to gather TLB/cache info,

Re: [PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance

2020-05-19 Thread Sean Christopherson
On Tue, Apr 28, 2020 at 05:17:14PM +0200, Joerg Roedel wrote: > From: Mike Stunes > > To avoid a future VMEXIT for a subsequent CPUID function, cache the > results returned by CPUID into an xarray. > > [tl: coding standard changes, register zero extension] > > Signed-off-by: Mike Stunes >

Re: [PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance

2020-05-06 Thread Tom Lendacky
On 5/6/20 1:08 PM, Mike Stunes wrote: On Apr 28, 2020, at 8:17 AM, Joerg Roedel wrote: From: Mike Stunes To avoid a future VMEXIT for a subsequent CPUID function, cache the results returned by CPUID into an xarray. [tl: coding standard changes, register zero extension] Signed-off-by:

Re: [PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance

2020-05-06 Thread Mike Stunes
> On Apr 28, 2020, at 8:17 AM, Joerg Roedel wrote: > > From: Mike Stunes > > To avoid a future VMEXIT for a subsequent CPUID function, cache the > results returned by CPUID into an xarray. > > [tl: coding standard changes, register zero extension] > > Signed-off-by: Mike Stunes >

[PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance

2020-04-28 Thread Joerg Roedel
From: Mike Stunes To avoid a future VMEXIT for a subsequent CPUID function, cache the results returned by CPUID into an xarray. [tl: coding standard changes, register zero extension] Signed-off-by: Mike Stunes Signed-off-by: Tom Lendacky [ jroe...@suse.de: - Wrapped cache handling into