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 4/6] mm: Add new map space for add_to_physmap, X

To: Jean Guyader <jean.guyader@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 4/6] mm: Add new map space for add_to_physmap, XENMAPSPACE_gmfn_range.
From: Keir Fraser <keir@xxxxxxx>
Date: Fri, 04 Nov 2011 14:47:53 +0000
Cc: tim@xxxxxxx, allen.m.kay@xxxxxxxxx
Delivery-date: Fri, 04 Nov 2011 07:48:54 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=Lnhb3nBDJXx/+b2cKFtkvioHyxcY8LbDpK474Bxdk2c=; b=NiHWxcfFA2yItMnyj5zldXVtGkySvD+M0SYXFJFl4oXX8cef6sEi9nY5l0q3Otvg0u gMBdddXqQNob998VsQFSEgRAPU/EwwnyjIIg5PPLSt2iY+g4c9LKAj3LIjD1BQtrdxDq HnRr6v1xj6mRQ3IFySslKCUVX471F6SHPs+nk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1320403109-8739-5-git-send-email-jean.guyader@xxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcybALs0NNTtoqZAkkee/dFJkryk/A==
Thread-topic: [Xen-devel] [PATCH 4/6] mm: Add new map space for add_to_physmap, XENMAPSPACE_gmfn_range.
User-agent: Microsoft-Entourage/12.30.0.110427
On 04/11/2011 10:38, "Jean Guyader" <jean.guyader@xxxxxxxxxxxxx> wrote:

> 
> XENMAPSPACE_gmfn_range is like XENMAPSPACE_gmfn but with a size which
> is the number of pages on which xen will iterate.

You can't really extend the size of an existing ABI structure, and always
copy that extended size. Older guests won't know to guarantee that the
extended space is accessible. I suggest you make your new field a uint16_t,
placed directly after the domid field. Then you are making use of existing
pad space. 64k pages = 256MB at a time should be plenty of amortisation.

And, even with the reduced field width, I could imagine 64k remappings
taking a good while. The remapping loop should regularly (even every
iteration) check hypercall_preempt_check(), then
hypercall_create_continuation() and exit if the hypercall is being requested
to voluntarily yield.

 -- Keir

> Signed-off-by: Jean Guyader <jean.guyader@xxxxxxxxxxxxx>
> ---
>  xen/arch/x86/mm.c           |   15 ++++++++++++++-
>  xen/include/public/memory.h |    4 ++++
>  2 files changed, 18 insertions(+), 1 deletions(-)
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



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