]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: fix forgot flush tlbs on sync_page path
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Fri, 19 Nov 2010 09:01:40 +0000 (17:01 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:29:43 +0000 (11:29 +0200)
commit2c211d121a3a777ed4ad312baa0ec8c1c908137e
treed3816bef1c74ce4d1acd6d80c634d50f7e60e644
parent6767935f832bad9a366c700fbdd950577bbd3e21
KVM: MMU: fix forgot flush tlbs on sync_page path

We should flush all tlbs after drop spte on sync_page path since

Quote from Avi:
| sync_page
| drop_spte
| kvm_mmu_notifier_invalidate_page
| kvm_unmap_rmapp
| spte doesn't exist -> no flush
| page is freed
| guest can write into freed page?

KVM-Stable-Tag.
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/paging_tmpl.h