]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/entry: Zap the #VC entry user and kernel macros
authorBorislav Petkov (AMD) <bp@alien8.de>
Mon, 20 Apr 2026 16:43:52 +0000 (18:43 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 4 May 2026 09:18:41 +0000 (11:18 +0200)
commit52705e72e265406255f83dbd0c725fddc5bd2c83
treeb9be9f29f69126807792fe0cd8bca53e8e735794
parent7fd2df204f342fc17d1a0bfcd474b24232fb0f32
x86/entry: Zap the #VC entry user and kernel macros

Drop the separate kernel and user macros in favor of calling a single #VC
C handler which multiplexes between the kernel and user #VC entry points
by looking at CS's RPL.

Zap unused DEFINE_IDTENTRY_VC while at it.

There should be no functionality change resulting from this - just code
simplification.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Nikunj A. Dadhania <nikunj@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Joerg Roedel <joerg.roedel@amd.com>
Tested-by: Nikunj A. Dadhania <nikunj@amd.com>
Link: https://patch.msgid.link/20260420164352.32129-1-bp@kernel.org
arch/x86/coco/sev/internal.h
arch/x86/coco/sev/vc-handle.c
arch/x86/entry/entry_64.S
arch/x86/entry/entry_fred.c
arch/x86/include/asm/idtentry.h