Re: [PATCH v3 06/11] KVM: MMU: let page fault handler be aware tracked page

2016-02-22 Thread Xiao Guangrong
On 02/19/2016 07:45 PM, Paolo Bonzini wrote: On 14/02/2016 12:31, Xiao Guangrong wrote: +/* + * check if the corresponding access on the specified guest page is tracked. + */ +bool kvm_page_track_check_mode(struct kvm_vcpu *vcpu, gfn_t gfn, + enum kvm_page_track_

Re: [PATCH v3 06/11] KVM: MMU: let page fault handler be aware tracked page

2016-02-19 Thread Paolo Bonzini
On 14/02/2016 12:31, Xiao Guangrong wrote: > +/* > + * check if the corresponding access on the specified guest page is tracked. > + */ > +bool kvm_page_track_check_mode(struct kvm_vcpu *vcpu, gfn_t gfn, > +enum kvm_page_track_mode mode) Please rename to kvm_page_trac

[PATCH v3 06/11] KVM: MMU: let page fault handler be aware tracked page

2016-02-14 Thread Xiao Guangrong
The page fault caused by write access on the write tracked page can not be fixed, it always need to be emulated. page_fault_handle_page_track() is the fast path we introduce here to skip holding mmu-lock and shadow page table walking However, if the page table is not present, it is worth making th