KVM: MMU: don't drop spte if overwrite it from W to RO
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Fri, 19 Nov 2010 09:02:35 +0000 (17:02 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:29:45 +0000 (11:29 +0200)
commitb330aa0c7df1ece45f45566c45ea44f01e379ab0
tree898c047105adaf74793e2f9a9293f5082049cc9f
parent30bfb3c4256422221cc763ff6e749ce8aca8e5c9
KVM: MMU: don't drop spte if overwrite it from W to RO

We just need flush tlb if overwrite a writable spte with a read-only one.

And we should move this operation to set_spte() for sync_page path

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c