diff options
author | Kai Huang <kai.huang@intel.com> | 2022-07-28 06:04:52 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-07-28 21:02:07 +0300 |
commit | 7edc3a68038ab151a8791ddb6217755a5e4a5809 (patch) | |
tree | 61bb11f29af7cd85bd28d1cb593a585b7f80979f /arch/arm64/boot/dts/qcom/sdm845.dtsi | |
parent | 6fac42f127b8e8464b8c13036dfed825981881d9 (diff) | |
download | linux-7edc3a68038ab151a8791ddb6217755a5e4a5809.tar.xz |
KVM, x86/mmu: Fix the comment around kvm_tdp_mmu_zap_leafs()
Now kvm_tdp_mmu_zap_leafs() only zaps leaf SPTEs but not any non-root
pages within that GFN range anymore, so the comment around it isn't
right.
Fix it by shifting the comment from tdp_mmu_zap_leafs() instead of
duplicating it, as tdp_mmu_zap_leafs() is static and is only called by
kvm_tdp_mmu_zap_leafs().
Opportunistically tweak the blurb about SPTEs being cleared to (a) say
"zapped" instead of "cleared" because "cleared" will be wrong if/when
KVM allows a non-zero value for non-present SPTE (i.e. for Intel TDX),
and (b) to clarify that a flush is needed if and only if a SPTE has been
zapped since MMU lock was last acquired.
Fixes: f47e5bbbc92f ("KVM: x86/mmu: Zap only TDP MMU leafs in zap range and mmu_notifier unmap")
Suggested-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Kai Huang <kai.huang@intel.com>
Message-Id: <20220728030452.484261-1-kai.huang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/sdm845.dtsi')
0 files changed, 0 insertions, 0 deletions