Hi, I''m studying on some Xen source code. I came up to a symbol named "_mfn" (stands for "machine frame number"). But I searched the whole project and couldn''t find its definition. Anyone be kind enough to explain? Thanks. -- Best wishes, Zhe, FANG _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I think it''s constructed by name splicing inside a macro (''_
## _name'', or
something like that). mfn_x gets constructed the same way.
-- Keir
On 28/10/07 04:10, "Zhe FANG" <pighogswine@gmail.com> wrote:
> Hi,
> I''m studying on some Xen source code. I came up to a symbol named
> "_mfn" (stands for "machine frame number"). But I
searched the whole
> project and couldn''t find its definition. Anyone be kind enough to
> explain? Thanks.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
At 06:26 +0000 on 28 Oct (1193552791), Keir Fraser wrote:> I think it''s constructed by name splicing inside a macro (''_ ## _name'', or > something like that). mfn_x gets constructed the same way.The definitions have moved around a bit; they''re currently in include/asm-x86/mm.h, at about line 500 (the TYPE_SAFE macro). They don''t do anything except make it harder to forget to translate between frame-number spaces -- in the shadow code there''s an equivalent type ''gfn_t'' for untranslated frame numbers from the guest''s page tables. Cheers, Tim. -- Tim Deegan <Tim.Deegan@xensource.com>, XenSource UK Limited Registered office c/o EC2Y 5EB, UK; company number 05334508 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel