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-ia64-devel

[Xen-ia64-devel] Re: [Xen-changelog] [linux-2.6.18-xen] blktap2: a compl

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] Re: [Xen-changelog] [linux-2.6.18-xen] blktap2: a completely rewritten blktap implementation
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 27 May 2009 19:18:44 +0900
Cc: dmeyer@xxxxxxxxx, jake.wires@xxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 27 May 2009 03:18:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200905261835.n4QIZ7k8031648@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200905261835.n4QIZ7k8031648@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
On Tue, May 26, 2009 at 11:35:05AM -0700, Xen patchbot-linux-2.6.18-xen wrote:
> diff -r f3a935eb30e0 -r eba6fe6d8d53 drivers/xen/blktap2/device.c
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/drivers/xen/blktap2/device.c    Tue May 26 11:23:16 2009 +0100
> +static int
> +blktap_map_uaddr_fn(pte_t *ptep, struct page *pmd_page,
> +                 unsigned long addr, void *data)
> +{
> +     pte_t *pte = (pte_t *)data;
> +
> +     BTDBG("ptep %p -> %012llx\n", ptep, pte_val(*pte));
> +     set_pte(ptep, *pte);
> +     xen_invlpg(addr);
> +     return 0;
> +}
...
> +static int
> +blktap_umap_uaddr_fn(pte_t *ptep, struct page *pmd_page,
> +                  unsigned long addr, void *data)
> +{
> +     struct mm_struct *mm = (struct mm_struct *)data;
> +
> +     BTDBG("ptep %p\n", ptep);
> +     pte_clear(mm, addr, ptep);
> +     xen_invlpg(addr);
> +     return 0;
> +}

Hi. Although I looked into this for ia64, I think this is generic.
xen_invlpg() flushes tlb on its cpu and doesn't on other cpus.
But those functions set ptes for all cpus.
So should tlb on all cpus be flushed? Maybe by flush_tlb_page()?

thanks,
-- 
yamahata

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>