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] xc_map_foreign_batch and 'Bus error' or 'Bad address'.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xc_map_foreign_batch and 'Bus error' or 'Bad address'.
From: Paradox <paradox@xxxxxxxxxxx>
Date: Fri, 23 Nov 2007 17:50:14 +0100
Delivery-date: Fri, 23 Nov 2007 08:50:32 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E1IvXCh-0001co-ST@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: <E1IvXCh-0001co-ST@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'm tried to use xc_map_foreign_batch to map a page. I don't understand precisely which is the parameter *arr in unsigned long xen_pfn_t type. This is a pfn?

I tried to call xc_map_foreign_batch with a machine address mapped with xm_map_foreign _range and in this way I receive a "Bus error" message.

If I call xc_map_foreign_batch with the MFN I receive a "XXXXXXX: Bad address" error.

I think must be called with pfn. If it is so, I must convert a MFN in PFN, right? I see in xc_domain_save e translate_mfn_to_pfn. How I can include to call this marco?

Many Thanks.

Bye

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] xc_map_foreign_batch and 'Bus error' or 'Bad address'., Paradox <=