[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



On Mon, 2011-06-27 at 09:47 +0100, Wei Liu wrote:
> Hi, all
> 
> I'm reading the code of QEMU's virtio infrastructure (hw/virtio.c) and
> Linux's virtio driver (virtio_blk.c, virtio_net.c).
> 
> Virtio drivers utilize scatter gather infrastructure in the Linux
> kernel. It stores the physical addresses in scatter list. In Xen's hvm
> case, QEMU can access guest address space with
> cpu_physical_memory_map.
> 
> However, in Xen's pv case, this "physical address" will be "pseudo
> physical address". In order to retrieve theirs content, backend must
> map them into its own address space. I'm wondering if there is such
> infrastructure to get this job done.

I think you want one of xc_map_* provided by libxc (see xenctrl.h). (But
avoid xc_map_foreign_batch which is deprecated).

Ian.



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.