diff options
author | Like Xu <likexu@tencent.com> | 2023-05-23 11:29:47 +0800 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-05-26 11:24:52 -0700 |
commit | 762b33eb90c9cc9227bf035cf2cf6f1458afecdb (patch) | |
tree | 773a4da467b9f2fdc941e8bf16b2a6aec572e976 /tools/perf/scripts/python/task-analyzer.py | |
parent | 12ced095956a517dc0c8c8f9264e29fd67124302 (diff) |
KVM: x86/mmu: Assert on @mmu in the __kvm_mmu_invalidate_addr()
Add assertion to track that "mmu == vcpu->arch.mmu" is always true in the
context of __kvm_mmu_invalidate_addr(). for_each_shadow_entry_using_root()
and kvm_sync_spte() operate on vcpu->arch.mmu, but the only reason that
doesn't cause explosions is because handle_invept() frees roots instead of
doing a manual invalidation. As of now, there are no major roadblocks
to switching INVEPT emulation over to use kvm_mmu_invalidate_addr().
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Like Xu <likexu@tencent.com>
Link: https://lore.kernel.org/r/20230523032947.60041-1-likexu@tencent.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions