]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/fred: Install system vector handlers even if FRED isn't fully enabled
authorSean Christopherson <seanjc@google.com>
Fri, 2 May 2025 14:24:01 +0000 (07:24 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 18 Aug 2025 12:23:08 +0000 (14:23 +0200)
commit2d1435b742156f6d4adc8b9ab0f24b35d879266e
tree47fbc27afebba7e80e7481248af2ddf1a857a5f8
parentc8ed0812646e1335c80a8f204c1b92b2f9d76119
x86/fred: Install system vector handlers even if FRED isn't fully enabled

Install the system vector IRQ handlers for FRED even if FRED isn't fully
enabled in hardware.  This will allow KVM to use the FRED IRQ path even
on non-FRED hardware, which in turn will eliminate a non-CFI indirect CALL
(KVM currently invokes the IRQ handler via an IDT lookup on the vector).

[sean: extract from diff, drop stub, write changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250714103441.121251108@infradead.org
arch/x86/include/asm/idtentry.h
arch/x86/kernel/irqinit.c