* about: XENMEM_machphys_mfn_list
@ 2008-07-18 8:49 Lin.Yu
2008-07-18 9:10 ` BVK Chaitanya
0 siblings, 1 reply; 3+ messages in thread
From: Lin.Yu @ 2008-07-18 8:49 UTC (permalink / raw)
To: Xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 540 bytes --]
Hi, all,
XENMEM_machphys_mfn_list command is used to acquire the mapping between the
pseudo-physical to machine. And the hypercall will fill in the struct
xen_machphys_mfn_list.
I do not understand "This table is an array of pseudo-physical frame numbers
of the start of 2MB extents, corresponding to 2MB rangs in the
pseudo-physical address space".
"This table" means the array pointed by xen_machphys_mfn_list.extent_start.
I am reading the code about this struct, still in confusion.
:-)
Who can help me?
--
Best Regards,
-- Lin.Yu
[-- Attachment #1.2: Type: text/html, Size: 640 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: about: XENMEM_machphys_mfn_list
2008-07-18 8:49 about: XENMEM_machphys_mfn_list Lin.Yu
@ 2008-07-18 9:10 ` BVK Chaitanya
2008-07-18 9:22 ` Lin.Yu
0 siblings, 1 reply; 3+ messages in thread
From: BVK Chaitanya @ 2008-07-18 9:10 UTC (permalink / raw)
To: Lin.Yu; +Cc: Xen-devel
Lin.Yu wrote:
>
> XENMEM_machphys_mfn_list command is used to acquire the mapping between
> the pseudo-physical to machine. And the hypercall will fill in the
> struct xen_machphys_mfn_list.
>
> I do not understand "This table is an array of pseudo-physical frame
> numbers of the start of 2MB extents, corresponding to 2MB rangs in the
> pseudo-physical address space".
> "This table" means the array pointed by xen_machphys_mfn_list.extent_start.
>
> I am reading the code about this struct, still in confusion.
> :-)
> Who can help me?
>
AFAIU, here "table" is nothing more than an array of xen_pfn_ts.
Only complication is, mfns returned are `base-mfns' for 2MB memory regions.
For example, if mfn 100 is returned, it means mfns 100-612 hold the 2MB
region (612 = 100 + 512; 512 pages make 2MB)
--
bvk-chaitanya
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: about: XENMEM_machphys_mfn_list
2008-07-18 9:10 ` BVK Chaitanya
@ 2008-07-18 9:22 ` Lin.Yu
0 siblings, 0 replies; 3+ messages in thread
From: Lin.Yu @ 2008-07-18 9:22 UTC (permalink / raw)
To: BVK Chaitanya; +Cc: Xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1045 bytes --]
Got it.
But why 2MB? I have no any clue about it.
-- Lin
On Fri, Jul 18, 2008 at 5:10 PM, BVK Chaitanya <
bayapuneni_chaitanya@symantec.com> wrote:
> Lin.Yu wrote:
>
>>
>> XENMEM_machphys_mfn_list command is used to acquire the mapping between
>> the pseudo-physical to machine. And the hypercall will fill in the struct
>> xen_machphys_mfn_list.
>>
>> I do not understand "This table is an array of pseudo-physical frame
>> numbers of the start of 2MB extents, corresponding to 2MB rangs in the
>> pseudo-physical address space".
>> "This table" means the array pointed by
>> xen_machphys_mfn_list.extent_start.
>>
>> I am reading the code about this struct, still in confusion.
>> :-)
>> Who can help me?
>>
>>
>
> AFAIU, here "table" is nothing more than an array of xen_pfn_ts.
>
> Only complication is, mfns returned are `base-mfns' for 2MB memory regions.
>
> For example, if mfn 100 is returned, it means mfns 100-612 hold the 2MB
> region (612 = 100 + 512; 512 pages make 2MB)
>
>
> --
> bvk-chaitanya
>
--
Best Regards,
-- Lin.Yu
[-- Attachment #1.2: Type: text/html, Size: 1623 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-18 9:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 8:49 about: XENMEM_machphys_mfn_list Lin.Yu
2008-07-18 9:10 ` BVK Chaitanya
2008-07-18 9:22 ` Lin.Yu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.