diff options
author | Yanan Wang <wangyanan55@huawei.com> | 2020-12-02 04:10:33 +0800 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-12-02 09:42:36 +0000 |
commit | 3a0b870e3448302ca2ba703bea1b79b61c3f33c6 (patch) | |
tree | 3820f50b0ad6b3d780ac5ea45d6ae09b614f32ef /Documentation/ABI/testing/sysfs-fs-f2fs | |
parent | 5c646b7e1d8bcb12317426287c516dfa4c5171c2 (diff) | |
download | linux-3a0b870e3448302ca2ba703bea1b79b61c3f33c6.tar.gz linux-3a0b870e3448302ca2ba703bea1b79b61c3f33c6.tar.bz2 linux-3a0b870e3448302ca2ba703bea1b79b61c3f33c6.zip |
KVM: arm64: Fix handling of merging tables into a block entry
When dirty logging is enabled, we collapse block entries into tables
as necessary. If dirty logging gets canceled, we can end-up merging
tables back into block entries.
When this happens, we must not only free the non-huge page-table
pages but also invalidate all the TLB entries that can potentially
cover the block. Otherwise, we end-up with multiple possible translations
for the same physical page, which can legitimately result in a TLB
conflict.
To address this, replease the bogus invalidation by IPA with a full
VM invalidation. Although this is pretty heavy handed, it happens
very infrequently and saves a bunch of invalidations by IPA.
Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
[maz: fixup commit message]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20201201201034.116760-3-wangyanan55@huawei.com
Diffstat (limited to 'Documentation/ABI/testing/sysfs-fs-f2fs')
0 files changed, 0 insertions, 0 deletions