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


Re: [Xen-devel] Getting the GFN

To: Lakshitha Harshan <harshan.dll@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Getting the GFN
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Sun, 24 Apr 2011 08:38:50 +0100
Delivery-date: Sun, 24 Apr 2011 00:39:50 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:message-id :thread-topic:thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=a9SZHODjVGVJMWCi7V9ueDxLJDePb3GJx9WFUfwQePM=; b=bp9OGV2b9VwtQCO+dMC3C3zm157VtWzwosnE0GV+IiY/J9hNBDYnhR2kIPtnNOEhlx +mTE0kzfdpdYcp2NhBNvHYsiFXzPTu1XF0ifha1klR+gdp7/uBo9hlfNGTSTcqziISrF lxCMVDTrup9t3aozuevD+QjreJ27itE+XH+W0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=XQOVQBhwMc/U7p0vQ/fhkNJjO6Knx0kmPDtOcqv0mnE9EL+ZPInMAMZsNbl0fkvqOd Rd6g8f8eTWoL1CFSDQFx46C+q8eZUUhCgfqCKZHc8BedOq07DzfBz7JCj3NFYIml9onz fjv/Micc5w/bUjUN5b+3m2vhPCyaQf7YG5j8A=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTik_x6-9pAKwmgk5nyApkxh4JT_wcg@xxxxxxxxxxxxxx>
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
Thread-index: AcwCUqcLfeMxFQzPLkuBAaKDejEs5w==
Thread-topic: [Xen-devel] Getting the GFN
User-agent: Microsoft-Entourage/
On 23/04/2011 19:28, "Lakshitha Harshan" <harshan.dll@xxxxxxxxx> wrote:

> 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?

No it returns GFN, for an HVM guest.

> 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)?

Using xc_translate_foreign_address().

> What is the address format in 64-bit VMs?

What do you think? Same as 32-bit addresses but 64 bits wide rather than 32
bits wide.

 -- Keir

> 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

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>