diff options
author | 2023-01-06 01:13:05 +0000 | |
---|---|---|
committer | 2023-01-13 10:45:35 -0500 | |
commit | d471bd853d38117c90ec02ecc51b3ca731674745 (patch) | |
tree | db7f46c9c7823d1dc39a9e8a53ac5dde9155324e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: x86: Track required APICv inhibits with variable, not callback (diff) | |
download | wireguard-linux-d471bd853d38117c90ec02ecc51b3ca731674745.tar.xz wireguard-linux-d471bd853d38117c90ec02ecc51b3ca731674745.zip |
KVM: x86: Allow APICv APIC ID inhibit to be cleared
Legacy kernels prior to commit 4399c03c6780 ("x86/apic: Remove
verify_local_APIC()") write the APIC ID of the boot CPU twice to verify
a functioning local APIC. This results in APIC acceleration inhibited
on these kernels for reason APICV_INHIBIT_REASON_APIC_ID_MODIFIED.
Allow the APICV_INHIBIT_REASON_APIC_ID_MODIFIED inhibit reason to be
cleared if/when all APICs in xAPIC mode set their APIC ID back to the
expected vcpu_id value.
Fold the functionality previously in kvm_lapic_xapic_id_updated() into
kvm_recalculate_apic_map(), as this allows examining all APICs in one
pass.
Fixes: 3743c2f02517 ("KVM: x86: inhibit APICv/AVIC on changes to APIC ID or APIC base")
Signed-off-by: Greg Edwards <gedwards@ddn.com>
Link: https://lore.kernel.org/r/20221117183247.94314-1-gedwards@ddn.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230106011306.85230-33-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions