From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paradox Subject: xc_map_foreign_batch and 'Bus error' or 'Bad address'. Date: Fri, 23 Nov 2007 17:50:14 +0100 Message-ID: <474704C6.40505@cheapnet.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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