Re: [PATCH 3/8] KVM: MMU: do not add a nonpresent spte to rmaps of its child

2011-12-19 Thread Avi Kivity
On 12/19/2011 04:39 AM, Takuya Yoshikawa wrote: (2011/12/16 19:15), Xiao Guangrong wrote: -static void mmu_page_add_parent_pte(struct kvm_vcpu *vcpu, -struct kvm_mmu_page *sp, u64 *parent_pte) +static void mmu_page_add_set_parent_pte(struct kvm_vcpu *vcpu, +

Re: [PATCH 3/8] KVM: MMU: do not add a nonpresent spte to rmaps of its child

2011-12-18 Thread Takuya Yoshikawa
(2011/12/16 19:15), Xiao Guangrong wrote: -static void mmu_page_add_parent_pte(struct kvm_vcpu *vcpu, - struct kvm_mmu_page *sp, u64 *parent_pte) +static void mmu_page_add_set_parent_pte(struct kvm_vcpu *vcpu, + struct

[PATCH 3/8] KVM: MMU: do not add a nonpresent spte to rmaps of its child

2011-12-16 Thread Xiao Guangrong
Set the spte before adding it to the rmap of its child so that all parent spte are valid when propagate unsync bit from a usnync page / children page And this feature is needed by the later patch Signed-off-by: Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com --- arch/x86/kvm/mmu.c |