Xiao Guangrong wrote: > > spte = rmap_next(kvm, rmapp, NULL); > @@ -1879,9 +1877,9 @@ static int set_spte(struct kvm_vcpu *vcpu, u64 *sptep, > * whether the guest actually used the pte (in order to detect > * demand paging). > */ > - spte = shadow_base_present_pte | shadow_dirty_mask; > + spte = shadow_base_present_pte; > if (!speculative) > - spte |= shadow_accessed_mask; > + spte |= shadow_accessed_mask | shadow_dirty_mask; It breaks read-only shadow page, i'll update it... please ignore this version... -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html