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: [Question] Why code differs in construct_dom0?

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] RE: [Question] Why code differs in construct_dom0?
From: "Shan, Haitao" <haitao.shan@xxxxxxxxx>
Date: Thu, 20 Nov 2008 21:14:24 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 20 Nov 2008 05:15:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C54B1085.293B0%keir.fraser@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>
References: <61563CE63B4F854986A895DA7AD3C17701F7E64D@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C54B1085.293B0%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclK7215rpYCsocDQfKwAUF7KsGCIAAAXKusAABBHNAAAOL0DAAAJiRQAATXEJAAAbr9vAAARp9w
Thread-topic: [Question] Why code differs in construct_dom0?
OK, got it. It seems a kind crash message would be good. Anyhow, the first two 
solutions can only lower the possibility of such kind of problems.
Thanks!

Shan Haitao

-----Original Message-----
From: Keir Fraser [mailto:keir.fraser@xxxxxxxxxxxxx] 
Sent: 2008年11月20日 21:03
To: Shan, Haitao
Cc: 'xen-devel@xxxxxxxxxxxxxxxxxxx'
Subject: Re: [Question] Why code differs in construct_dom0?




On 20/11/08 12:52, "Shan, Haitao" <haitao.shan@xxxxxxxxx> wrote:

> Either increasing the reservation (like 384M) or changing the initial p2m
> mapping in dom0 can solve the problem, and our tests verified this judgment.
> We do not know which solution is better. That's why we are seeking your kindly
> help.
> I am not sure if I have explained clearly enough so far. So any questions on
> the problem itself, Keir?

I don't think there's an easy answer. Increasing the default reservation
won't please everyone, since not everyone will want dom0 to be 'robbed' of
384M! It's also a bit specific to this particular situation.

Relying on p2m being roughly 1:1 is a bit gross but, if it helps, we could
change the debug code to swap adjacent pairs of pages, rather than reversing
the entire p2m map? Then it would still happen that low pseudophys addresses
have low machine addresses? It's kind of nasty though.

Perhaps really we should have the crash path in Linux print a message
advising to specify dom0_mem= to Xen?

 -- Keir



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