WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 2 of 2] Added a hook for clearing ptes when a vma

To: Geoffrey Lefebvre <geoffrey@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2 of 2] Added a hook for clearing ptes when a vma is freed by the kernel. Adapted from gntdev
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 23 May 2007 19:44:18 +0900
Cc: Jake.Wires@xxxxxxxxxxxxx, andrew.warfield@xxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 May 2007 03:42:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <236647990e986bca16f1.1179843476@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1179843474@xxxxxxxxxxxxxxxxxxxxx> <236647990e986bca16f1.1179843476@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
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