Re: [PATCH v3 38/75] x86/sev-es: Add SEV-ES Feature Detection

2020-06-03 Thread Joerg Roedel
On Wed, May 20, 2020 at 10:39:16AM +0200, Borislav Petkov wrote: > On Tue, Apr 28, 2020 at 05:16:48PM +0200, Joerg Roedel wrote: > > +bool sev_es_active(void) > > +{ > > + return !!(sev_status & MSR_AMD64_SEV_ES_ENABLED); > > +} > > +EXPORT_SYMBOL_GPL(sev_es_active); > > I don't see this being

Re: [PATCH v3 38/75] x86/sev-es: Add SEV-ES Feature Detection

2020-05-20 Thread Borislav Petkov
On Tue, Apr 28, 2020 at 05:16:48PM +0200, Joerg Roedel wrote: > +bool sev_es_active(void) > +{ > + return !!(sev_status & MSR_AMD64_SEV_ES_ENABLED); > +} > +EXPORT_SYMBOL_GPL(sev_es_active); I don't see this being used in modules anywhere in the patchset. Or am I missing something? --

[PATCH v3 38/75] x86/sev-es: Add SEV-ES Feature Detection

2020-04-28 Thread Joerg Roedel
From: Joerg Roedel Add the sev_es_active function for checking whether SEV-ES is enabled. Also cache the value of MSR_AMD64_SEV at boot to speed up the feature checking in the running code. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/mem_encrypt.h | 3 +++