WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] address translation in hvm mode

To: rajneesh rana <rajneeshrana009@xxxxxxxxx>
Subject: Re: [Xen-devel] address translation in hvm mode
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Tue, 29 Jan 2008 15:58:39 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 29 Jan 2008 07:59:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <426390.33865.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <426390.33865.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
At 04:54 -0800 on 29 Jan (1201582491), rajneesh rana wrote:
> i am  new to xen-development and currently trying to understand memory mgmt 
> in hvm mode
> I am writing a hypercall which takes input of virtual address of domu. 
> hypercall translate this address to machine and return 4kb page from 
> thereafter.
> Inside hypercall, i m using  paging_gva_to_gfn function but it returns -1 
> instead of returning valid gfn.
> 
> what wrong with my approach.

It should work, though I'm not sure that any other code calls
paging_gva_to_gfn() with v != current.  It will depend on the hardware
you run on whether the function called is actually hap_gva_to_gfn_<foo>
or sh_gva_to_gfn; you could try instrumenting with printk or otherwise.

Cheers,

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]

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