diff options
author | Sean Christopherson <seanjc@google.com> | 2024-06-07 19:26:08 +0200 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-06-28 17:59:06 +0200 |
commit | 321ef62b0c5f6f57bb8500a2ca5986052675abbf (patch) | |
tree | 5aa8d3c048009b9988a0f071a4d3d3983febe3a1 /arch/x86/include/asm/pgtable-2level.h | |
parent | KVM: nVMX: Check for pending posted interrupts when looking for nested events (diff) | |
download | linux-321ef62b0c5f6f57bb8500a2ca5986052675abbf.tar.xz linux-321ef62b0c5f6f57bb8500a2ca5986052675abbf.zip |
KVM: nVMX: Fold requested virtual interrupt check into has_nested_events()
Check for a Requested Virtual Interrupt, i.e. a virtual interrupt that is
pending delivery, in vmx_has_nested_events() and drop the one-off
kvm_x86_ops.guest_apic_has_interrupt() hook.
In addition to dropping a superfluous hook, this fixes a bug where KVM
would incorrectly treat virtual interrupts _for L2_ as always enabled due
to kvm_arch_interrupt_allowed(), by way of vmx_interrupt_blocked(),
treating IRQs as enabled if L2 is active and vmcs12 is configured to exit
on IRQs, i.e. KVM would treat a virtual interrupt for L2 as a valid wake
event based on L1's IRQ blocking status.
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240607172609.3205077-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable-2level.h')
0 files changed, 0 insertions, 0 deletions