[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Getting the GFN
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 Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |