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

[Xen-devel] Re: [PATCH 0/4] xen: map foreign pages for shared rings by u

To: David Vrabel <david.vrabel@xxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH 0/4] xen: map foreign pages for shared rings by updating the PTEs directly
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Thu, 20 Oct 2011 19:44:59 -0400
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
Delivery-date: Mon, 24 Oct 2011 06:16:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1319107519-2253-1-git-send-email-david.vrabel@xxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1319107519-2253-1-git-send-email-david.vrabel@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
On Thu, Oct 20, 2011 at 11:45:15AM +0100, David Vrabel wrote:
> This series of patches allows the vmalloc_sync_all() to be removed
> from alloc_vm_area() by getting the hypervisor to update the PTEs (in
> init_mm) directly rather than having the hypervisor look in the
> current page tables to find the PTEs.
> 
> Once the hypervisor has updated the PTEs, the normal mechanism of
> syncing the page tables after a fault works as expected.
> 
> This mechanism doesn't currently work on the ia64 port as that does
> not support the GNTMAP_contains_pte flag.
> 
> Andrew, patch 4 (xen: map foreign pages for shared rings by updating
> the PTEs directly) depends on patch 1 so it's probably best to go via
> Konrad's Xen tree with your acked-by.

Or I can Ack patch 1 and Andrew can pick both of them. Either way - but let
mention the Ack on patch #1

> 
> David
> 
> David Vrabel (4):
>   xen: use generic functions instead of xen_{alloc,free}_vm_area()
>   block: xen-blkback: use API provided by xenbus module to map rings
>   net: xen-netback: use API provided by xenbus module to map rings
>   xen: map foreign pages for shared rings by updating the PTEs directly
> 
>  arch/ia64/include/asm/xen/grant_table.h |   29 -----------
>  arch/ia64/xen/grant-table.c             |   62 ------------------------
>  arch/x86/include/asm/xen/grant_table.h  |    7 ---
>  arch/x86/xen/grant-table.c              |    2 +-
>  drivers/block/xen-blkback/common.h      |    5 +--
>  drivers/block/xen-blkback/xenbus.c      |   54 +++------------------
>  drivers/net/xen-netback/common.h        |   11 ++--
>  drivers/net/xen-netback/netback.c       |   80 
> +++++++------------------------
>  drivers/xen/xenbus/xenbus_client.c      |   15 ++++--
>  include/linux/vmalloc.h                 |    2 +-
>  include/xen/grant_table.h               |    1 -
>  mm/vmalloc.c                            |   27 +++++-----
>  12 files changed, 55 insertions(+), 240 deletions(-)
>  delete mode 100644 arch/ia64/include/asm/xen/grant_table.h
>  delete mode 100644 arch/x86/include/asm/xen/grant_table.h
> 
> -- 
> 1.7.2.5

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