lkml.org 
[lkml]   [2006]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC PATCH 32/35] Add Xen driver utility functions.
Date
On Wednesday 22 March 2006 07:31, Chris Wright wrote:

> + /*
> + * Ensure that the page tables are mapped into the current mm. The
> + * page-fault path will copy the page directory pointers from init_mm.
> + */
> + for (i = 0; i < area->size; i += PAGE_SIZE)
> + (void)__get_user(c, (char __user *)area->addr + i);

It would be easier and simpler to just copy the pgd manually.

Iirc Jan B. had a patch for a vmalloc_sync() function for this purpose, maybe
that one could be used.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-22 16:07    [W:0.403 / U:33.960 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site