diff options
author | 2023-02-16 23:41:14 +0800 | |
---|---|---|
committer | 2023-03-16 17:19:51 -0700 | |
commit | cd42853e9530fb64097cbe83abce10a34e68cdf4 (patch) | |
tree | 2d39ccb249c4067dc18224bf4f8e5d1434aff8fd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: x86/mmu: Sanity check input to kvm_mmu_free_roots() (diff) | |
download | wireguard-linux-cd42853e9530fb64097cbe83abce10a34e68cdf4.tar.xz wireguard-linux-cd42853e9530fb64097cbe83abce10a34e68cdf4.zip |
kvm: x86/mmu: Use KVM_MMU_ROOT_XXX for kvm_mmu_invalidate_addr()
The @root_hpa for kvm_mmu_invalidate_addr() is called with @mmu->root.hpa
or INVALID_PAGE where @mmu->root.hpa is to invalidate gva for the current
root (the same meaning as KVM_MMU_ROOT_CURRENT) and INVALID_PAGE is to
invalidate gva for all roots (the same meaning as KVM_MMU_ROOTS_ALL).
Change the argument type of kvm_mmu_invalidate_addr() and use
KVM_MMU_ROOT_XXX instead so that we can reuse the function for
kvm_mmu_invpcid_gva() and nested_ept_invalidate_addr() for invalidating
gva for different set of roots.
No fuctionalities changed.
Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Link: https://lore.kernel.org/r/20230216154115.710033-9-jiangshanlai@gmail.com
[sean: massage comment slightly]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions