On Tue, 2008-09-09 at 03:42 -0400, Oren Laadan wrote:
get_user_pages() is really the wrong thing to use here. It makes pages
*present* so that we can do things like hand them off to a driver. For
checkpointing, we really don't care about that. It's a waste of time,
for instance to perform faults to fill the mappings up with zero pages
and page tables. Just think of what will happen the first time we touch
a very large, very sparse anonymous area. We'll probably kill the
system just allocating page tables. Take a look at the comment in
follow_page(). This is a similar operation to core dumping, and we need
to be careful.
This might be fine for a proof of concept, but it needs to be thought
out much more thoroughly before getting merged. I guess I'm
volunteering to go do that.
-- Dave
--