From: Lin.Yu Subject: Re: about: XENMEM_machphys_mfn_list Date: Fri, 18 Jul 2008 17:22:26 +0800 Message-ID: <8eeed7950807180222o23e396fek6cddf4c767acf1fc@mail.gmail.com> References: <8eeed7950807180149y44b1a2eq56e866a490c2c2af@mail.gmail.com> <48805E0F.9000208@symantec.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0876260845==" Return-path: In-Reply-To: <48805E0F.9000208@symantec.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: BVK Chaitanya Cc: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0876260845== Content-Type: multipart/alternative; boundary="----=_Part_90721_19167829.1216372946388" ------=_Part_90721_19167829.1216372946388 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_90721_19167829.1216372946388 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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
------=_Part_90721_19167829.1216372946388-- --===============0876260845== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0876260845==--