]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/sev: Move noinstr NMI handling code into separate source file
authorArd Biesheuvel <ardb@kernel.org>
Fri, 18 Apr 2025 14:12:56 +0000 (16:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 22 Apr 2025 07:12:00 +0000 (09:12 +0200)
commitb66fcee1574e72663a0c6dd7112a9e22774dbe9f
tree76a61d16c22e002561b1b73cc03b06f92e0918f3
parent092071e0f63c2d2c54810a427d4d9a0df6aad52b
x86/sev: Move noinstr NMI handling code into separate source file

GCC may ignore the __no_sanitize_address function attribute when
inlining, resulting in KASAN instrumentation in code tagged as
'noinstr'.

Move the SEV NMI handling code, which is noinstr, into a separate source
file so KASAN can be disabled on the whole file without losing coverage
of other SEV core code, once the startup code is split off from it too.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: David Woodhouse <dwmw@amazon.co.uk>
Cc: Dionna Amalie Glaze <dionnaglaze@google.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Kevin Loughlin <kevinloughlin@google.com>
Cc: Len Brown <len.brown@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20250418141253.2601348-10-ardb+git@google.com
arch/x86/coco/sev/Makefile
arch/x86/coco/sev/core.c
arch/x86/coco/sev/sev-nmi.c [new file with mode: 0644]