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


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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Is there a way to map pv guest pseudo physical address into dom0?
From: Wei Liu <liuw@xxxxxxxxx>
Date: Mon, 27 Jun 2011 16:47:29 +0800
Cc: Anthony Perard <anthony.perard@xxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Delivery-date: Mon, 27 Jun 2011 01:50:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

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.


Xen-devel mailing list