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/RFC] Implement the memory_map hypercall

To: Jun Koi <junkoi2004@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH/RFC] Implement the memory_map hypercall
From: Glauber de Oliveira Costa <gcosta@xxxxxxxxxx>
Date: Fri, 24 Nov 2006 12:57:34 -0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 24 Nov 2006 06:57:25 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <fdaac4d50611240636q51b96237h75b5ca500364d0d6@xxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20061124140810.GC7171@xxxxxxxxxx> <fdaac4d50611240636q51b96237h75b5ca500364d0d6@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
On Fri, Nov 24, 2006 at 11:36:36PM +0900, Jun Koi wrote:
> Glauber, what is this hypercall for? To map hypervisor memory from Dom0?

This hypercall (already declared, but currently always returning ENOSYS)
is meant to give a guest (any guest) the idea on how should this
physical memory mapping look like.

Currently, linux guest kernels checks for the result of such a call, and
stabilish a memory mapping on their own if it returns ENOSYS. However,
such mapping is not proving itself to be the most suitable one,
specially in a long term.

That said, when you boot a 300mb guest, instead of:

BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 0000000013400000 (usable)

You'd see your RAM mapping being extended to whatever value 
is set in  d->memory_map_limit ( or even for some reason, in the future,
a differently organized map)


-- 
Glauber de Oliveira Costa
Red Hat Inc.
"Free as in Freedom"

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

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