Hi, Can anybody shed light on the Xen function map_domain_page (in xen/arch/x86/x86_32/domain_page.c)? What is it doing? Jinpeng Wei _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Gets a mfn (machine frame number) owned by the _current_ domain and maps it into the hypervisor virtual address space. ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Wei, Jinpeng Sent: Friday, June 08, 2007 9:55 PM To: xen-devel@lists.xensource.com Subject: [Xen-devel] map_domain_page Hi, Can anybody shed light on the Xen function map_domain_page (in xen/arch/x86/x86_32/domain_page.c)? What is it doing? Jinpeng Wei _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
it is to map a machine page into Xen address space. Xen only has 64M virtual address space on x86_32 , or 168M on PAE Xen, so it uses a cache mechanism to maintain the mapping between xen va and machine page. -Xin ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Wei, Jinpeng Sent: Saturday, June 09, 2007 2:55 AM To: xen-devel@lists.xensource.com Subject: [Xen-devel] map_domain_page Hi, Can anybody shed light on the Xen function map_domain_page (in xen/arch/x86/x86_32/domain_page.c)? What is it doing? Jinpeng Wei _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
It takes any mfn and maps it into the current hypervisor address space (i.e., only in the cirrent pagetables). -- Keir On 8/6/07 20:54, "Guy Zana" <guy@neocleus.com> wrote:> Gets a mfn (machine frame number) owned by the _current_ domain and maps it > into the hypervisor virtual address space. > >> >> >> >> From: xen-devel-bounces@lists.xensource.com >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Wei, Jinpeng >> Sent: Friday, June 08, 2007 9:55 PM >> To: xen-devel@lists.xensource.com >> Subject: [Xen-devel] map_domain_page >> >> >> >> >> >> Hi, >> >> >> >> Can anybody shed light on the Xen function map_domain_page (in >> xen/arch/x86/x86_32/domain_page.c)? What is it doing? >> >> >> >> Jinpeng Wei >> >> > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel