]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86: replace CONFIG_HAVE_KVM with IS_ENABLED(CONFIG_KVM)
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jan 2024 20:15:43 +0000 (15:15 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 8 Feb 2024 13:45:35 +0000 (08:45 -0500)
commitdcf0926e9b899eca754a07c4064de69815b85a38
treede9e6a5fb01f4eaceadc456e411002ba5422d0b1
parenta6d5433801c6629cda6cda6d8bdaefc204953abf
x86: replace CONFIG_HAVE_KVM with IS_ENABLED(CONFIG_KVM)

It is more accurate to check if KVM is enabled, instead of having the
architecture say so.  Architectures always "have" KVM, so for example
checking CONFIG_HAVE_KVM in x86 code is pointless, but if KVM is disabled
in a specific build, there is no need for support code.

Alternatively, many of the #ifdefs could simply be deleted.  However,
this would add completely dead code.  For example, when KVM is disabled,
there should not be any posted interrupts, i.e. NOT wiring up the "dummy"
handlers and treating IRQs on those vectors as spurious is the right
thing to do.

Cc: x86@kernel.org
Cc: kbingham@kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/hardirq.h
arch/x86/include/asm/idtentry.h
arch/x86/include/asm/irq.h
arch/x86/include/asm/irq_vectors.h
arch/x86/kernel/idt.c
arch/x86/kernel/irq.c
scripts/gdb/linux/constants.py.in
scripts/gdb/linux/interrupts.py
tools/arch/x86/include/asm/irq_vectors.h