On Po 05-06-06 09:47:45, Shaohua Li wrote: > On Thu, 2006-06-01 at 22:24 +0800, Pavel Machek wrote: > > On ?t 01-06-06 10:17:22, Nicolas Troncoso Carrere wrote: > > > Hi, > > > I was trying out swsusp, but up bumped up with the issue that it > > needs PSE. > > > I've been reading the source, but havent been able to get a grasp on > > why does > > > it need PSE. > > > Could you enlighten me? > > > > W/o PSE, we are using pagetables during data copy, and we may > > overwrite pagetable that is still used. > w/PSE pagetable might be overwritten too and data copy uses identity > mapping, overwrite pagetable doesn't harm to me. w/PSE, identity mapping is fully contained in top-level pagedir, and that is properly marked nosave. wo/PSE, you'd need to properly mark nosave not only top-level pagedir, but also all the needed descendants. Not impossible, just a bit tricky, see x86-64 version for inspiration. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html