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] What's allocated on head 1M region of domU?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] What's allocated on head 1M region of domU?
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Mon, 3 Dec 2007 02:54:55 +0000
Cc: Ryo Kanbayashi <kanbayashi@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 02 Dec 2007 18:55:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4750FDC7.50203@xxxxxxxxxxxxxxxxxxxxx>
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: <4750FDC7.50203@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)
> I'm now try to read and write puseud physical memory of domU from Dom0
> with xenaccess(this is using libxc).
> #http://xenaccess.sourceforge.net/

Ah, cool.  I'd not heard much about XenAccess for a while, but I see they're 
still progressing nicely - cool.

> With xenaccess, I'm succeeded read and writing almost of the memory. But
> It fail when I try to access head 1M region and some bit regions.
> To be precise, xc_map_foreign_range() of libxc returns error code.
> ** <javascript:goWordLink("to")>

What error code do you get?  Are you trying to map the first meg all at once 
and it's failing, or does it fail if you map any page in the first meg?  What 
exactly is the call that's failing?

I guess if you were trying to map the guest's shared_info page then you might 
be disallowed...?

> What's allocated on head 1M region of domU?
> #and , Can I get a document about memory allocation of dom0 and DomU
> somewhere?

See the comments starting around line 476 of xen/include/public/xen.h, which 
describes the start of day memory layout and defines some of the structures 
involved.  This will not be the same once the guest is up and running because 
the guest will allocate its own full pagetables and make its own decisions 
about where it wants to put stuff.  However, it'll at least give you some 
clues about how the guest is built initially...  I hope this helps you some.

Cheers,
Mark



-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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

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