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/
Home Products Support Community News


Re: [Xen-devel] Is there a way to map pv guest pseudo physical address i

To: Wei Liu <liuw@xxxxxxxxx>
Subject: Re: [Xen-devel] Is there a way to map pv guest pseudo physical address into dom0?
From: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Date: Mon, 27 Jun 2011 10:17:33 +0100
Cc: Anthony, Perard <anthony.perard@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Mon, 27 Jun 2011 02:18:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTikK6z-e-2oEXLA7UE4qHWxnB+ra8Q@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <BANLkTimW6NZRSR39WpSFrKfxCtDMCheMoA@xxxxxxxxxxxxxx> <1309165317.32717.160.camel@xxxxxxxxxxxxxxxxxxxxxx> <BANLkTikK6z-e-2oEXLA7UE4qHWxnB+ra8Q@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, 2011-06-27 at 10:10 +0100, Wei Liu wrote:
> On Mon, Jun 27, 2011 at 5:01 PM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> 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.


Xen-devel mailing list