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] map_domain_va and map problem with address mapped.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] map_domain_va and map problem with address mapped.
From: Paradox <paradox@xxxxxxxxxxx>
Date: Wed, 14 Nov 2007 15:05:08 +0100
Delivery-date: Wed, 14 Nov 2007 06:05:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E1IsHX4-0005um-3j@host-192-168-0-1-bcn-london>
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: <E1IsHX4-0005um-3j@host-192-168-0-1-bcn-london>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060427 Debian/1.7.13-0ubuntu04.10
Hi

I have some problem about access a guest location memory using map_domain_va function. My situation is next:

I have a simple program running in domU, I retrieve a guest virtual address for a struct value and I pause the domain (when I pause the domU the interested program still run...).

So I call map_domain_va function that call map_domain_va_pae. It seems that everything works properly because I obtain an address (PT walk don't fails...), but If I try to access this address I find a "strange" value.

For example:

domU guest address: 0xbfd38838 a location that contains an int, for example 10.

Address mapped returned by map_domain_va: 0xb7fac838

If I access the pointer returned above I obtain: 0xbfd38858 (very similar to domU guest address...). Perhaps I did not understand something, but I should not obtain 10?

Tnx in advance.

Best Regards

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] map_domain_va and map problem with address mapped., Paradox <=