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] RE: [RFC] fix xen_in_range()

To: Jan Beulich <jbeulich@xxxxxxxxxx>, Joseph Cihula <joseph.cihula@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] RE: [RFC] fix xen_in_range()
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 24 Apr 2009 08:16:12 +0100
Cc: Dexuan Cui <dexuan.cui@xxxxxxxxx>, Shane Wang <shane.wang@xxxxxxxxx>, Yunhong Jiang <yunhong.jiang@xxxxxxxxx>, Xiaowei Yang <xiaowei.yang@xxxxxxxxx>, Liping Ke <liping.ke@xxxxxxxxx>, Xin Li <xin.li@xxxxxxxxx>
Delivery-date: Fri, 24 Apr 2009 00:16:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49F180A8.76EA.0078.0@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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnEqrgbB62bvAFIRzKd4vkewsRYzgAAdP1X
Thread-topic: [Xen-devel] RE: [RFC] fix xen_in_range()
User-agent: Microsoft-Entourage/12.17.0.090302
On 24/04/2009 08:04, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:

> Also, after suggesting to use gb-pages when possible here I realized that
> it's probably a latent bug to map more space than was allocated - if the
> non-allocated-but-mapped pages happen to later get allocated to a domain,
> that domain may change the cacheability attributes of any of these pages,
> resulting in aliasing issues. I'll put together a patch for this, but it'll be
> a couple of days until I'll be able to do so.

I think we should shatter the superpage on demand. This would also be
required for superpage mappings of Xen itself: when we free initmem that
memory can now be allocated to a domain (now xenheap and domheap are merged
on x86/64).

An alternative might be to mark such partially-freed superpages as
Xenheap-only, and allocate them preferentially for Xenheap callers (i.e.,
alloc those pages first, then from the general heap).

 -- Keir



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