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

[Xen-devel] Getting the GFN

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Getting the GFN
From: Lakshitha Harshan <harshan.dll@xxxxxxxxx>
Date: Sat, 23 Apr 2011 23:58:31 +0530
Delivery-date: Sat, 23 Apr 2011 11:29:35 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=Y1wdlmrKeLoUKze0yI4Sd5fbMQvZLGOq4AK86t5zFSI=; b=oXeHhVZ8EqyQcMdSospQKPs7QY6tVkL/WmMNLldcKYipe0kavxuXVoN+IMxB4U316O SifkRg4uUCKg/wL6JmOql5hS9ZLMZfjFVFPB7kgA7GiXVhb6GjDYSeQGV50GEcmFVpI7 edpxnZr/jyCzzp7s+gdh4Kmut5XyMAuYxAkp4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=jx7t1cUUq6uC5VlonRPPipGCfQbtWSXG+6Bl80O0tWUxakE2LLYdh9L9kQhd5m+aUd 48Z/sfO3XVm0uSOC0iZBVYNw+eSay2NOlb5AQ/VoO7jeQTK8QalNzLgj3kD0rTdSBRmO KcB00IV8/p9MToBx3OiuIbJn2YBNZK9no3aVc=
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,

I have some questions regarding Memory management in Xen.

I have bit confusion on the return value xc_translate_foreign_address() function. As I think it returns MFN (on HVM guests) which contains that address? AM I correct?

Is there a way to get the GFNs of given memory addresses? For example if I want to get the GFNs of memory pages which contains kernel code of the guest, how can
I get these GFNson HVM guests  by using the addresses (i.e 0xc07c76e0)?

What is the address format in 64-bit VMs? For example I can get a productive output from xc_translate_foreign_address() by supplying address like 0xc0cccccc for 32-bit HVM guests. 
But what is the format of the address which should be passed to xc_translate_foreign_address() in 64-bit VMs?

Can someone please clarify me above questions? Thanks a lot.

Regards,
Harshan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>