aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorRick Edgecombe <[email protected]>2024-07-18 21:12:29 +0000
committerPaolo Bonzini <[email protected]>2024-12-23 13:31:55 +0000
commitdf4af9f89cd853f7a06187dbbfd410fc6fd73bce (patch)
treecd9e2d989a3fefce81e1fd211894e8f129c6780d /net/unix/af_unix.c
parentKVM: x86/tdp_mmu: Take root types for kvm_tdp_mmu_invalidate_all_roots() (diff)
downloadkernel-df4af9f89cd853f7a06187dbbfd410fc6fd73bce.tar.gz
kernel-df4af9f89cd853f7a06187dbbfd410fc6fd73bce.zip
KVM: x86/tdp_mmu: Don't zap valid mirror roots in kvm_tdp_mmu_zap_all()
Don't zap valid mirror roots in kvm_tdp_mmu_zap_all(), which in effect is only direct roots (invalid and valid). For TDX, kvm_tdp_mmu_zap_all() is only called during MMU notifier release. Since, mirrored EPT comes from guest mem, it will never be mapped to userspace, and won't apply. But in addition to be unnecessary, mirrored EPT is cleaned up in a special way during VM destruction. Pass the KVM_INVALID_ROOTS bit into __for_each_tdp_mmu_root_yield_safe() as well, to clean up invalid direct roots, as is the current behavior. While at it, remove an obsolete reference to work item-based zapping. Co-developed-by: Yan Zhao <[email protected]> Signed-off-by: Yan Zhao <[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