|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH 2 of 2] Added a hook for clearing ptes when a vma
Hi.
On Tue, May 22, 2007 at 07:17:56AM -0700, Geoffrey Lefebvre wrote:
> +static pte_t blktap_clear_pte(struct vm_area_struct *vma,
> + unsigned long uvaddr,
> + pte_t *ptep, int is_fullmm)
[ snip ]
> + if (khandle->user != INVALID_GRANT_HANDLE) {
> +
> + BUG_ON(xen_feature(XENFEAT_auto_translated_physmap));
> +
> + gnttab_set_unmap_op(&unmap[count], virt_to_machine(ptep),
> + GNTMAP_host_map
> + | GNTMAP_application_map
> + | GNTMAP_contains_pte,
> + khandle->user);
> + count++;
> + }
'else pte_clear_full(...)' is necessary like gntdev for
auto translated physmap mode.
--
yamahata
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|