Re: [PATCH] arch/x86/entry_fred: don't set up KVM IRQs if KVM is disabled

From: Max Kellermann
Date: Thu Feb 15 2024 - 14:30:40 EST


On Thu, Feb 15, 2024 at 7:23 PM Xin Li <xin@xxxxxxxxx> wrote:
> The POSTED_INTR_* macros are under CONFIG_HAVE_KVM, which is 'selected'
> under CONFIG_X86.

Sorry, I should have said that I found this bug on linux-next master,
which has this commit:

https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next/+/dcf0926e9b899eca754a07c4064de69815b85a38%5E%21/

. which changes CONFIG_HAVE_KVM to CONFIG_KVM. I was not aware that
this commit hadn't been merged upstream yet.

You can easily reproduce with with "defconfig" plus CONFIG_X86_FRED
(on linux-next/master).

Max