[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YJOzFr1uanpaUFTe@8bytes.org>
Date: Thu, 6 May 2021 11:12:54 +0200
From: Joerg Roedel <joro@...tes.org>
To: Borislav Petkov <bp@...en8.de>
Cc: X86 ML <x86@...nel.org>, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] x86/cpu: Init exception handling from cpu_init()
On Tue, May 04, 2021 at 07:17:45PM +0200, Borislav Petkov wrote:
> From: Borislav Petkov <bp@...e.de>
>
> SEV-ES guests require properly setup task register with which the TSS
> descriptor in the GDT can be located so that the IST-type #VC exception
> handler which they need to function properly, can be executed.
>
> This setup needs to happen before attempting to load microcode in
> ucode_cpu_init() which can cause such #VC exceptions.
>
> Simplify the machinery by running that exception setup from cpu_init()
> directly.
>
> There should be no functional changes resulting from this patch.
>
> Signed-off-by: Borislav Petkov <bp@...e.de>
> ---
> arch/x86/include/asm/processor.h | 1 -
> arch/x86/kernel/cpu/common.c | 14 +++-----------
> arch/x86/kernel/smpboot.c | 1 -
> 3 files changed, 3 insertions(+), 13 deletions(-)
Acked-by: Joerg Roedel <jroedel@...e.de>
Powered by blists - more mailing lists