about: XENMEM_machphys_mfn_list
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?
Signature · 2 lines
Best Regards, -- Lin.Yu
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 10 lines · Lin.Yu
XENMEM_machphys_mfn_listcommand is used to acquire the mapping between the pseudo-physical to machine. And the hypercall will fill in the structxen_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
Got it.
But why 2MB? I have no any clue about it.
-- Lin
Quoted 30 lines · BVK Chaitanya
Quoted 11 lines · Lin.Yu
XENMEM_machphys_mfn_listcommand is used to acquire the mapping between the pseudo-physical to machine. And the hypercall will fill in the structxen_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.Quoted 5 lines
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
Signature · 2 lines
Best Regards, -- Lin.Yu
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel