aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2025-04-01 16:18:03 +0000
committerPaolo Bonzini <[email protected]>2025-04-24 13:52:31 +0000
commit6560aff981ada9aec8163509a59d8f48283263d6 (patch)
tree29f7d61917b559a149dba3a22997a7a8cef86f08 /rust/helpers/build_bug.c
parentKVM: arm64, x86: make kvm_arch_has_irq_bypass() inline (diff)
downloadkernel-6560aff981ada9aec8163509a59d8f48283263d6.tar.gz
kernel-6560aff981ada9aec8163509a59d8f48283263d6.zip
KVM: SVM: Don't update IRTEs if APICv/AVIC is disabled
Skip IRTE updates if AVIC is disabled/unsupported, as forcing the IRTE into remapped mode (kvm_vcpu_apicv_active() will never be true) is unnecessary and wasteful. The IOMMU driver is responsible for putting IRTEs into remapped mode when an IRQ is allocated by a device, long before that device is assigned to a VM. I.e. the kernel as a whole has major issues if the IRTE isn't already in remapped mode. Opportunsitically kvm_arch_has_irq_bypass() to query for APICv/AVIC, so so that all checks in KVM x86 incorporate the same information. Cc: Yosry Ahmed <[email protected]> Cc: Jim Mattson <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Message-ID: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions