Re: [PATCH v2 9/10] KVM MMU: separate invlpg code form kvm_mmu_pte_write()

2010-04-25 Thread Xiao Guangrong
Avi Kivity wrote: > On 04/25/2010 10:02 AM, Xiao Guangrong wrote: >> Let invlpg not depends on kvm_mmu_pte_write path, later patch will need >> this feature >> >> >> if (mmu_topup_memory_caches(vcpu)) >> return; >> -kvm_mmu_pte_write(vcpu, pte_gpa, NULL, sizeof(pt_element_t),

Re: [PATCH v2 9/10] KVM MMU: separate invlpg code form kvm_mmu_pte_write()

2010-04-25 Thread Avi Kivity
On 04/25/2010 10:02 AM, Xiao Guangrong wrote: Let invlpg not depends on kvm_mmu_pte_write path, later patch will need this feature if (mmu_topup_memory_caches(vcpu)) return; - kvm_mmu_pte_write(vcpu, pte_gpa, NULL, sizeof(pt_element_t), 0); + + kvm_read_guest

[PATCH v2 9/10] KVM MMU: separate invlpg code form kvm_mmu_pte_write()

2010-04-25 Thread Xiao Guangrong
Let invlpg not depends on kvm_mmu_pte_write path, later patch will need this feature Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 12 +++- arch/x86/kvm/paging_tmpl.h | 33 ++--- 2 files changed, 29 insertions(+), 16 deletions(-) diff --g