Re: [PATCH v3 07/11] KVM: page track: add notifier support

2016-02-23 Thread Paolo Bonzini
On 23/02/2016 05:34, Xiao Guangrong wrote: >> >> A kvm_vcpu_mark_page_dirty is missing here, isn't it? I can take care >> of it, but it would be great if you double-checked this. If so, that >> should be fixed in stable kernels too. > > No. It's already been handled in emulator_write_phys() ->

Re: [PATCH v3 07/11] KVM: page track: add notifier support

2016-02-22 Thread Xiao Guangrong
On 02/19/2016 07:51 PM, Paolo Bonzini wrote: On 14/02/2016 12:31, Xiao Guangrong wrote: +void kvm_page_track_write(struct kvm_vcpu *vcpu, gpa_t gpa, const u8 *new, + int bytes) +{ + struct kvm_page_track_notifier_head *head; + struct kvm_page_track_notif

Re: [PATCH v3 07/11] KVM: page track: add notifier support

2016-02-19 Thread Paolo Bonzini
On 14/02/2016 12:31, Xiao Guangrong wrote: > Notifier list is introduced so that any node wants to receive the track > event can register to the list > > Two APIs are introduced here: > - kvm_page_track_register_notifier(): register the notifier to receive > track event > > - kvm_page_track_u

[PATCH v3 07/11] KVM: page track: add notifier support

2016-02-14 Thread Xiao Guangrong
Notifier list is introduced so that any node wants to receive the track event can register to the list Two APIs are introduced here: - kvm_page_track_register_notifier(): register the notifier to receive track event - kvm_page_track_unregister_notifier(): stop receiving track event by unregis