aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/workqueue.c
diff options
context:
space:
mode:
authorIsaku Yamahata <[email protected]>2025-02-22 01:47:47 +0000
committerPaolo Bonzini <[email protected]>2025-03-14 18:20:55 +0000
commitfc17de99019a479e9df27cb532624d1f14cb13f1 (patch)
treeec9485be3ec01828cc9a9a83b0150834dd8e934d /rust/helpers/workqueue.c
parentKVM: x86: Assume timer IRQ was injected if APIC state is protected (diff)
downloadkernel-fc17de99019a479e9df27cb532624d1f14cb13f1.tar.gz
kernel-fc17de99019a479e9df27cb532624d1f14cb13f1.zip
KVM: TDX: Wait lapic expire when timer IRQ was injected
Call kvm_wait_lapic_expire() when POSTED_INTR_ON is set and the vector for LVTT is set in PIR before TD entry. KVM always assumes a timer IRQ was injected if APIC state is protected. For TDX guest, APIC state is protected and KVM injects timer IRQ via posted interrupt. To avoid unnecessary wait calls, only call kvm_wait_lapic_expire() when a timer IRQ was injected, i.e., POSTED_INTR_ON is set and the vector for LVTT is set in PIR. Add a helper to test PIR. Signed-off-by: Isaku Yamahata <[email protected]> Co-developed-by: Binbin Wu <[email protected]> Signed-off-by: Binbin Wu <[email protected]> Message-ID: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions