diff options
author | Lai Jiangshan <[email protected]> | 2021-09-18 08:56:27 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-09-23 10:28:44 -0400 |
commit | f81602958c115fc7c87b985f71574042a20ff858 (patch) | |
tree | d907a04c9aa0fe43ecafcdf0a6f008566b3987cc /lib/test_overflow.c | |
parent | faf6b755629627f19feafa75b32e81cd7738f12d (diff) |
KVM: X86: Fix missed remote tlb flush in rmap_write_protect()
When kvm->tlbs_dirty > 0, some rmaps might have been deleted
without flushing tlb remotely after kvm_sync_page(). If @gfn
was writable before and it's rmaps was deleted in kvm_sync_page(),
and if the tlb entry is still in a remote running VCPU, the @gfn
is not safely protected.
To fix the problem, kvm_sync_page() does the remote flush when
needed to avoid the problem.
Fixes: a4ee1ca4a36e ("KVM: MMU: delay flush all tlbs on sync_page path")
Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions