diff options
author | Sean Christopherson <seanjc@google.com> | 2025-04-01 19:18:03 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-04-24 16:52:31 +0300 |
commit | 6560aff981ada9aec8163509a59d8f48283263d6 (patch) | |
tree | 29f7d61917b559a149dba3a22997a7a8cef86f08 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 5f9e1698141a724ef63f75ee22fa9007d97de5bb (diff) | |
download | linux-6560aff981ada9aec8163509a59d8f48283263d6.tar.xz |
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 <yosry.ahmed@linux.dev>
Cc: Jim Mattson <jmattson@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20250401161804.842968-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions