KVM: MMU: cleanup pte write path
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Wed, 9 Mar 2011 07:43:51 +0000 (15:43 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:35 +0000 (13:08 -0300)
commit0f53b5b1c0baae4f949ac0721a55b7a2158dda01
tree822b7230ed0d9731492733d33ad2221cb644bdf2
parent5d163b1c9d6e5562dcdfd6cd471f237f1502bb35
KVM: MMU: cleanup pte write path

This patch does:
- call vcpu->arch.mmu.update_pte directly
- use gfn_to_pfn_atomic in update_pte path

The suggestion is from Avi.

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h