aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm/nested.c
diff options
context:
space:
mode:
authorLiam Ni <[email protected]>2024-07-30 13:59:41 +0000
committerSean Christopherson <[email protected]>2025-02-12 18:05:01 +0000
commit4cad9f87876a943d018ad73ec3919215fb756d2d (patch)
tree6cf68a1d7994f2c65168256680ff70c83a173360 /arch/x86/kvm/svm/nested.c
parentKVM: x86: Remove unused iommu_domain and iommu_noncoherent from kvm_arch (diff)
downloadkernel-4cad9f87876a943d018ad73ec3919215fb756d2d.tar.gz
kernel-4cad9f87876a943d018ad73ec3919215fb756d2d.zip
KVM: x86: Wake vCPU for PIC interrupt injection iff a valid IRQ was found
When updating the emulated PIC IRQ status, set "wakeup_needed" if and only if a new interrupt was found, i.e. if the incoming level is non-zero and an IRQ is being raised. The bug is relatively benign, as KVM will signal a spurious wakeup, e.g. set KVM_REQ_EVENT and kick target vCPUs, but KVM will never actually inject a spurious IRQ as kvm_cpu_has_extint() cares only about the "output" field. Fixes: 7049467b5383 ("KVM: remove isr_ack logic from PIC") Signed-off-by: Liam Ni <[email protected]> Link: https://lore.kernel.org/r/CACZJ9cX2R_=qgvLdaqbB_DUJhv08c674b67Ln_Qb9yyVwgE16w@mail.gmail.com [sean: reconstruct patch, rewrite changelog] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'arch/x86/kvm/svm/nested.c')
0 files changed, 0 insertions, 0 deletions