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

Re: [Xen-devel] Mapping hvm guest pages in Dom0

  • To: Satya <satyakiran@xxxxxxxxx>
  • From: "Jean Guyader" <jean.guyader@xxxxxxxxx>
  • Date: Sat, 27 Sep 2008 01:12:12 +0100
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 26 Sep 2008 17:12:36 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=DUPIsRvtaAL9SwCQIoONt6ptArTIQCNPpj4llnqczSyyHwUSfcXSQ/eTIJDjwqkC7z q3lJsrBhioQ7zMNnZAMVxjEwcOxY0pqnmCWV/j428JHHPMidErAotH3VUPtPPJaMiF/r FsvLTAi7SpGs1HSQAZ+FdP66MxpUktsRVB9bM=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>


On Fri, Sep 26, 2008 at 8:02 PM, Satya <satyakiran@xxxxxxxxx> wrote:
> hello,
> I would like to map (Read/Write) pages owned by a HVM guest from my Dom0
> Linux kernel module. I have access to the "machine frame numbers" of these
> pages.
> 1. What is the right interface to do this? kmap needs 'struct page' ptrs
> which I doubt exist for pages owned by a HVM guest. Is there a hypercall to
> do this then?

You can use xc_map_foreign_ranges function inside libxc (link with xenctrl).

> 2. Do I need to modify the HVM behavior in any way for this? (e.g., load a
> driver in the guest that will setup grant tables?). I need to keep my guest
> "pure HVM".

You don't need to modify your hvm for doing that.

Jean Guyader

Xen-devel mailing list



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