* Max gpfn for PV guests
@ 2013-11-08 20:58 Aravindh Puthiyaparambil (aravindp)
2013-11-11 9:48 ` Jan Beulich
0 siblings, 1 reply; 5+ messages in thread
From: Aravindh Puthiyaparambil (aravindp) @ 2013-11-08 20:58 UTC (permalink / raw)
To: xen-devel@lists.xenproject.org
[-- Attachment #1.1: Type: text/plain, Size: 504 bytes --]
I am trying to find out the max pgfn for a 256MB PV guest. If I call xc_domain_getinfolist() and look at xc_domaininfo->max_pages, I get 0x10100. If I call xc_domain_getinfo() and look at xc_dominfo->nr_pages, I get 0x10000. Within the hypervisor if I call domain_get_maximum_gpfn(), I get 0xffff. So it looks like xc_domain_getinfo() is returning the correct value. Why is xc_domain_getinfolist() returning a different value? Which value should I be looking at for the max gpfn?
Thanks,
Aravindh
[-- Attachment #1.2: Type: text/html, Size: 2260 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Max gpfn for PV guests
2013-11-08 20:58 Max gpfn for PV guests Aravindh Puthiyaparambil (aravindp)
@ 2013-11-11 9:48 ` Jan Beulich
2013-11-11 16:42 ` Aravindh Puthiyaparambil (aravindp)
0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2013-11-11 9:48 UTC (permalink / raw)
To: Aravindh Puthiyaparambil (aravindp); +Cc: xen-devel@lists.xenproject.org
>>> On 08.11.13 at 21:58, "Aravindh Puthiyaparambil (aravindp)"
<aravindp@cisco.com> wrote:
> I am trying to find out the max pgfn for a 256MB PV guest. If I call
> xc_domain_getinfolist() and look at xc_domaininfo->max_pages, I get 0x10100. If
> I call xc_domain_getinfo() and look at xc_dominfo->nr_pages, I get 0x10000.
> Within the hypervisor if I call domain_get_maximum_gpfn(), I get 0xffff. So
> it looks like xc_domain_getinfo() is returning the correct value. Why is
> xc_domain_getinfolist() returning a different value? Which value should I be
> looking at for the max gpfn?
I'm afraid none of these - since PV guests control the P2M mapping
themselves, there simply is no "max GPFN" being tracked here. (The
value returned by domain_get_maximum_gpfn() originates from the
shared info structure, i.e. again is only valid if the guest cares to
maintain that field.)
Jan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Max gpfn for PV guests
2013-11-11 9:48 ` Jan Beulich
@ 2013-11-11 16:42 ` Aravindh Puthiyaparambil (aravindp)
2013-11-11 16:47 ` Jan Beulich
0 siblings, 1 reply; 5+ messages in thread
From: Aravindh Puthiyaparambil (aravindp) @ 2013-11-11 16:42 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel@lists.xenproject.org
>>>> On 08.11.13 at 21:58, "Aravindh Puthiyaparambil (aravindp)"
><aravindp@cisco.com> wrote:
>> I am trying to find out the max pgfn for a 256MB PV guest. If I call
>> xc_domain_getinfolist() and look at xc_domaininfo->max_pages, I get
>> 0x10100. If I call xc_domain_getinfo() and look at xc_dominfo->nr_pages, I
>get 0x10000.
>> Within the hypervisor if I call domain_get_maximum_gpfn(), I get
>> 0xffff. So it looks like xc_domain_getinfo() is returning the correct
>> value. Why is
>> xc_domain_getinfolist() returning a different value? Which value
>> should I be looking at for the max gpfn?
>
>I'm afraid none of these - since PV guests control the P2M mapping
>themselves, there simply is no "max GPFN" being tracked here. (The value
>returned by domain_get_maximum_gpfn() originates from the shared info
>structure, i.e. again is only valid if the guest cares to maintain that field.)
Does this also hold true for PV guests running with shadow page tables?
Thanks,
Aravindh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Max gpfn for PV guests
2013-11-11 16:42 ` Aravindh Puthiyaparambil (aravindp)
@ 2013-11-11 16:47 ` Jan Beulich
2013-11-14 13:22 ` Tim Deegan
0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2013-11-11 16:47 UTC (permalink / raw)
To: Aravindh Puthiyaparambil (aravindp); +Cc: xen-devel@lists.xenproject.org
>>> On 11.11.13 at 17:42, "Aravindh Puthiyaparambil (aravindp)"
<aravindp@cisco.com> wrote:
>>>>> On 08.11.13 at 21:58, "Aravindh Puthiyaparambil (aravindp)"
>><aravindp@cisco.com> wrote:
>>> I am trying to find out the max pgfn for a 256MB PV guest. If I call
>>> xc_domain_getinfolist() and look at xc_domaininfo->max_pages, I get
>>> 0x10100. If I call xc_domain_getinfo() and look at xc_dominfo->nr_pages, I
>>get 0x10000.
>>> Within the hypervisor if I call domain_get_maximum_gpfn(), I get
>>> 0xffff. So it looks like xc_domain_getinfo() is returning the correct
>>> value. Why is
>>> xc_domain_getinfolist() returning a different value? Which value
>>> should I be looking at for the max gpfn?
>>
>>I'm afraid none of these - since PV guests control the P2M mapping
>>themselves, there simply is no "max GPFN" being tracked here. (The value
>>returned by domain_get_maximum_gpfn() originates from the shared info
>>structure, i.e. again is only valid if the guest cares to maintain that
> field.)
>
> Does this also hold true for PV guests running with shadow page tables?
I would think so, but I don't know enough about this mode to be
certain.
Jan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Max gpfn for PV guests
2013-11-11 16:47 ` Jan Beulich
@ 2013-11-14 13:22 ` Tim Deegan
0 siblings, 0 replies; 5+ messages in thread
From: Tim Deegan @ 2013-11-14 13:22 UTC (permalink / raw)
To: Aravindh Puthiyaparambil (aravindp)
Cc: xen-devel@lists.xenproject.org, Jan Beulich
At 16:47 +0000 on 11 Nov (1384184876), Jan Beulich wrote:
> >>> On 11.11.13 at 17:42, "Aravindh Puthiyaparambil (aravindp)"
> <aravindp@cisco.com> wrote:
> >>>>> On 08.11.13 at 21:58, "Aravindh Puthiyaparambil (aravindp)"
> >><aravindp@cisco.com> wrote:
> >>> I am trying to find out the max pgfn for a 256MB PV guest. If I call
> >>> xc_domain_getinfolist() and look at xc_domaininfo->max_pages, I get
> >>> 0x10100. If I call xc_domain_getinfo() and look at xc_dominfo->nr_pages, I
> >>get 0x10000.
> >>> Within the hypervisor if I call domain_get_maximum_gpfn(), I get
> >>> 0xffff. So it looks like xc_domain_getinfo() is returning the correct
> >>> value. Why is
> >>> xc_domain_getinfolist() returning a different value? Which value
> >>> should I be looking at for the max gpfn?
> >>
> >>I'm afraid none of these - since PV guests control the P2M mapping
> >>themselves, there simply is no "max GPFN" being tracked here. (The value
> >>returned by domain_get_maximum_gpfn() originates from the shared info
> >>structure, i.e. again is only valid if the guest cares to maintain that
> > field.)
> >
> > Does this also hold true for PV guests running with shadow page tables?
>
> I would think so, but I don't know enough about this mode to be
> certain.
Yes; PV guests under shadow pagetables still control their own memory
layout.
Tim.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-11-14 13:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 20:58 Max gpfn for PV guests Aravindh Puthiyaparambil (aravindp)
2013-11-11 9:48 ` Jan Beulich
2013-11-11 16:42 ` Aravindh Puthiyaparambil (aravindp)
2013-11-11 16:47 ` Jan Beulich
2013-11-14 13:22 ` Tim Deegan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).