From: Satya Subject: Mapping hvm guest pages in Dom0 Date: Fri, 26 Sep 2008 12:02:09 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1291245218==" 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 List-Id: xen-devel@lists.xenproject.org --===============1291245218== Content-Type: multipart/alternative; boundary="----=_Part_25786_15771179.1222455729053" ------=_Part_25786_15771179.1222455729053 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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? 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". thanks, ./satya ------=_Part_25786_15771179.1222455729053 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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?

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".

thanks,
./satya
------=_Part_25786_15771179.1222455729053-- --===============1291245218== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1291245218==--