Re: [PATCH v6 46/76] x86/sev-es: Adjust #VC IST Stack on entering NMI handler

2020-08-31 Thread Borislav Petkov
On Mon, Aug 24, 2020 at 10:54:41AM +0200, Joerg Roedel wrote: > diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c > index 4fc9954a9560..951f098a4bf5 100644 > --- a/arch/x86/kernel/nmi.c > +++ b/arch/x86/kernel/nmi.c > @@ -33,6 +33,7 @@ > #include > #include > #include > +#include >

[PATCH v6 46/76] x86/sev-es: Adjust #VC IST Stack on entering NMI handler

2020-08-24 Thread Joerg Roedel
From: Joerg Roedel When an NMI hits in the #VC handler entry code before it switched to another stack, any subsequent #VC exception in the NMI code-path will overwrite the interrupted #VC handlers stack. Make sure this doesn't happen by explicitly adjusting the #VC IST entry in the NMI handler