diff options
| author | Isaku Yamahata <[email protected]> | 2024-07-18 21:12:28 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2024-12-23 13:31:54 +0000 |
| commit | a89ecbb56bc722a1ca7a11f5554ae3d8f1d73887 (patch) | |
| tree | 54c96b0980a8eedacb1b5f410991bdff2c3ef6ca /net/unix/af_unix.c | |
| parent | KVM: x86/tdp_mmu: Propagate tearing down mirror page tables (diff) | |
| download | kernel-a89ecbb56bc722a1ca7a11f5554ae3d8f1d73887.tar.gz kernel-a89ecbb56bc722a1ca7a11f5554ae3d8f1d73887.zip | |
KVM: x86/tdp_mmu: Take root types for kvm_tdp_mmu_invalidate_all_roots()
Rename kvm_tdp_mmu_invalidate_all_roots() to
kvm_tdp_mmu_invalidate_roots(), and make it enum kvm_tdp_mmu_root_types
as an argument.
kvm_tdp_mmu_invalidate_roots() is called with different root types. For
kvm_mmu_zap_all_fast() it only operates on shared roots. But when tearing
down a VM it needs to invalidate all roots. Have the callers only
invalidate the required roots instead of all roots.
Within kvm_tdp_mmu_invalidate_roots(), respect the root type
passed by checking the root type in root iterator.
Suggested-by: Chao Gao <[email protected]>
Signed-off-by: Isaku Yamahata <[email protected]>
Signed-off-by: Rick Edgecombe <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
