Commit cd42853
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>1 parent f94db0c commit cd42853
3 files changed
Lines changed: 21 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2045 | 2045 | | |
2046 | 2046 | | |
2047 | 2047 | | |
2048 | | - | |
| 2048 | + | |
2049 | 2049 | | |
2050 | 2050 | | |
2051 | 2051 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5765 | 5765 | | |
5766 | 5766 | | |
5767 | 5767 | | |
5768 | | - | |
| 5768 | + | |
5769 | 5769 | | |
5770 | 5770 | | |
5771 | 5771 | | |
| 5772 | + | |
| 5773 | + | |
5772 | 5774 | | |
5773 | 5775 | | |
5774 | 5776 | | |
| |||
5781 | 5783 | | |
5782 | 5784 | | |
5783 | 5785 | | |
5784 | | - | |
| 5786 | + | |
5785 | 5787 | | |
5786 | 5788 | | |
5787 | | - | |
5788 | | - | |
5789 | | - | |
5790 | | - | |
5791 | | - | |
5792 | | - | |
5793 | | - | |
5794 | | - | |
5795 | | - | |
5796 | | - | |
5797 | | - | |
5798 | | - | |
5799 | | - | |
5800 | | - | |
5801 | | - | |
5802 | | - | |
| 5789 | + | |
| 5790 | + | |
| 5791 | + | |
| 5792 | + | |
5803 | 5793 | | |
5804 | 5794 | | |
5805 | 5795 | | |
5806 | 5796 | | |
5807 | 5797 | | |
5808 | | - | |
| 5798 | + | |
| 5799 | + | |
| 5800 | + | |
| 5801 | + | |
| 5802 | + | |
| 5803 | + | |
| 5804 | + | |
| 5805 | + | |
| 5806 | + | |
| 5807 | + | |
| 5808 | + | |
5809 | 5809 | | |
5810 | 5810 | | |
5811 | 5811 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
806 | | - | |
| 806 | + | |
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
| |||
0 commit comments