diff options
author | Sean Christopherson <[email protected]> | 2024-06-07 10:26:08 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-06-28 08:59:06 -0700 |
commit | 321ef62b0c5f6f57bb8500a2ca5986052675abbf (patch) | |
tree | 5aa8d3c048009b9988a0f071a4d3d3983febe3a1 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 27c4fa42b11af780d49ce704f7fa67b3c2544df4 (diff) |
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: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions