]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69bbe14d59b360b582a08aa777cd2ef7b1bbbe69
tree898c047105adaf74793e2f9a9293f5082049cc9f
parent2c211d121a3a777ed4ad312baa0ec8c1c908137e
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