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

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

On Mon, Jun 27, 2011 at 5:17 PM, Ian Campbell
<Ian.Campbell@xxxxxxxxxxxxx> wrote:
> 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.
>

That's not a good approach. Dirvers reside on a higher level from the
"Xen specific bit". Doing this kind of translation will break their
generality. But there seems no other way to get this job done...

> Otherwise you only option is to pause the guest and map his p2m. Which
> would obviously suck.
>

Agreed.

Wei.

> Ian.
>
>
>

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