KVM: MMU: clear write-flooding on the fast path of tracked page

If the page fault is caused by write access on write tracked page, the
real shadow page walking is skipped, we lost the chance to clear write
flooding for the page structure current vcpu is using

Fix it by locklessly waking shadow page table to clear write flooding
on the shadow page structure out of mmu-lock. So that we change the
count to atomic_t

Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Xiao Guangrong
2016-02-24 17:51:12 +08:00
committed by Paolo Bonzini
orang tua 3d0c27ad6e
melakukan e5691a81e8
3 mengubah file dengan 24 tambahan dan 4 penghapusan

Melihat File

@@ -285,7 +285,7 @@ struct kvm_mmu_page {
#endif
/* Number of writes since the last time traversal visited this page. */
int write_flooding_count;
atomic_t write_flooding_count;
};
struct kvm_pio_request {