diff options
author | Ben Gardon <bgardon@google.com> | 2021-11-15 13:17:04 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-08 09:04:43 +0100 |
commit | 2bdc79ac9a4f1447eb14c6edcd6b05787b93b221 (patch) | |
tree | 0391d4beb0050e3c63ca9e1f3f8bfbc4d3892285 /virt/kvm | |
parent | 0827b8db5c7fd3ecbe00e725f5295eda8e7aa9a7 (diff) | |
download | linux-stable-2bdc79ac9a4f1447eb14c6edcd6b05787b93b221.tar.gz linux-stable-2bdc79ac9a4f1447eb14c6edcd6b05787b93b221.tar.bz2 linux-stable-2bdc79ac9a4f1447eb14c6edcd6b05787b93b221.zip |
KVM: x86/mmu: Fix TLB flush range when handling disconnected pt
commit 574c3c55e969096cea770eda3375ff35ccf91702 upstream.
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: stable@vger.kernel.org
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20211115211704.2621644-1-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions