From: Wei Liu Subject: Is there a way to map pv guest pseudo physical address into dom0? Date: Mon, 27 Jun 2011 16:47:29 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Anthony Perard , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org 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. Wei.