On Wed, Sep 9, 2009 at 11:26 PM, MingyanGuo <guoming...@gmail.com> wrote:
> Hi all, > > I find that function pmap_remove_all for arch amd64 works with a time > window between reading & clearing the PTE flags(access flag and dirty flag) > and invalidating its TLB entry on other CPU. After some discussion with Li > Xin(cced), I think all the processes that are using the PTE being removed > should be blocked before calling pmap_remove_all, or other CPU may dirty the > page but does not set the dirty flag before the TLB entry is flushed. But I > can not find how to block them to call the function. I read the function > vm_pageout_scan in file vm/vm_pageout.c but can not find the exact method it > used. Or I just misunderstood the semantics of function pmap_remove_all ? > > Thanks in advance. > > Regards, > MingyanGuo > Sorry for the noise. I understand the logic now. There is no time window problem between reading & clearing the PTE and invalidating it on other CPU, even if other CPU is using the PTE. I misunderstood the logic. Regards, MingyanGuo _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"