From: Joerg Roedel <joro@8bytes.org>
To: Borislav Petkov <bp@alien8.de>
Cc: X86 ML <x86@kernel.org>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86/cpu: Init exception handling from cpu_init()
Date: Thu, 6 May 2021 11:12:54 +0200 [thread overview]
Message-ID: <YJOzFr1uanpaUFTe@8bytes.org> (raw)
In-Reply-To: <20210504171745.2249-1-bp@alien8.de>
On Tue, May 04, 2021 at 07:17:45PM +0200, Borislav Petkov wrote:
> From: Borislav Petkov <bp@suse.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@suse.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@suse.de>
prev parent reply other threads:[~2021-05-06 9:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-04 17:17 [PATCH] x86/cpu: Init exception handling from cpu_init() Borislav Petkov
2021-05-06 9:12 ` Joerg Roedel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YJOzFr1uanpaUFTe@8bytes.org \
--to=joro@8bytes.org \
--cc=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox