diff options
| author | Ben Gardon <[email protected]> | 2021-11-15 13:17:04 -0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-11-18 02:15:19 -0500 |
| commit | 574c3c55e969096cea770eda3375ff35ccf91702 (patch) | |
| tree | 90fe653d0ea454f2acfb8242bde517b94f0640e6 /net/unix/af_unix.c | |
| parent | 2845e7353bc334d43309f5ea6d376c8fdbc94c93 (diff) | |
KVM: x86/mmu: Fix TLB flush range when handling disconnected pt
When recursively clearing out disconnected pts, the range based TLB
flush in handle_removed_tdp_mmu_page uses the wrong starting GFN,
resulting in the flush mostly missing the affected range. Fix this by
using base_gfn for the flush.
In response to feedback from David Matlack on the RFC version of this
patch, also move a few definitions into the for loop in the function to
prevent unintended references to them in the future.
Fixes: a066e61f13cf ("KVM: x86/mmu: Factor out handling of removed page tables")
CC: [email protected]
Signed-off-by: Ben Gardon <[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