From: Ian Campbell Subject: Re: Is there a way to map pv guest pseudo physical address into dom0? Date: Mon, 27 Jun 2011 10:17:33 +0100 Message-ID: <1309166253.32717.167.camel@zakaz.uk.xensource.com> References: <1309165317.32717.160.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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: Wei Liu Cc: Anthony, Perard , "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, 2011-06-27 at 10:10 +0100, Wei Liu wrote: > On Mon, Jun 27, 2011 at 5:01 PM, Ian Campbell wrote: > > I think you want one of xc_map_* provided by libxc (see xenctrl.h). (But > > avoid xc_map_foreign_batch which is deprecated). > > > > AFAICT, they take MFN as parameter, but I have pseudo physical addresses. :-( You need to arrange for the Xen specific bit of the virtio frontend to do the p2m translation. All externally visible addresses from a PV guest must be in MFN space. Otherwise you only option is to pause the guest and map his p2m. Which would obviously suck. Ian.