Lai Jiangshan f81602958c 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 <laijs@linux.alibaba.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210918005636.3675-2-jiangshanlai@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-09-23 10:28:44 -04:00
..
2021-09-03 15:33:47 -07:00
2021-09-15 17:18:56 -07:00
2021-09-19 13:29:36 -07:00
2021-06-23 18:16:33 +02:00
2021-09-19 13:29:36 -07:00
2021-09-07 19:13:42 -07:00
2021-08-26 22:28:03 +02:00
2021-09-19 13:29:36 -07:00
2021-09-03 15:33:47 -07:00