[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Max gfn?


  • To: AP <apxeng@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Fri, 09 Mar 2012 07:25:00 +0000
  • Delivery-date: Fri, 09 Mar 2012 07:25:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Acz9xbyDsk2Vr707UkGl2EZSYQZqgA==
  • Thread-topic: [Xen-devel] Max gfn?

On 09/03/2012 05:56, "AP" <apxeng@xxxxxxxxx> wrote:

> I have a 12GB 64-bit Linux HVM guest (CentOS 5.5). When I look at the
> e820 map in the guest, I see the following:
> 
> BIOS-provided physical RAM map:
>  BIOS-e820: 0000000000010000 - 000000000009e000 (usable)
>  BIOS-e820: 000000000009e000 - 00000000000a0000 (reserved)
>  BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
>  BIOS-e820: 0000000000100000 - 00000000f0000000 (usable)
>  BIOS-e820: 00000000fc000000 - 0000000100000000 (reserved)
>  BIOS-e820: 0000000100000000 - 000000030f000000 (usable)
> 
> I see that the highest usable gpa is over 12GB due to the reserved
> slots and the max gfn is 30f000.  If I use xc_domain_getinfolist() and
> look at max_pages, it returns 300100 which correctly reflects 12GB.
> But is there a way for me to find out the max gfn that is reflected in
> the guest using libxc?

xc_domain_maximum_gpfn() returns a value guaranteed to be >= the current
maximum gpfn in the guests physical address space.

 -- Keir

> Thanks,
> AP
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.