From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Magenheimer Subject: RE: Doubt regarding virtual memory mapping from hypervisor to a domain Date: Mon, 31 Jan 2011 07:36:40 -0800 (PST) Message-ID: <7270db8c-d71a-4ab7-84fb-02ee256b44b7@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kaustubh Kabra , xen-devel@lists.xensource.com Cc: vasani.ashwin@gmail.com, keir@xen.org, Tim.Deegan@citrix.com List-Id: xen-devel@lists.xenproject.org > From: Kaustubh Kabra [mailto:kaustubhwise@gmail.com] > I have allocated few order=3D9 pages in Xen memory space using > alloc_domheap_pages(NULL,9,0) during boot time just before domain is > created (dom0 =3D domain_create(0, DOMCRF_s3_integrity, DOM0_SSIDREF) in > xen/arch/x86/setup.c). >=20 > I got the following virtual addresses in xen log message- > (XEN) a2k2: Virt_addr:ffff83011cc00000 MFN:11cc00 > (XEN) a2k2: Virt_addr:ffff83011ca00000 MFN:11ca00 > (XEN) a2k2: Virt_addr:ffff83011c800000 MFN:11c800 > (XEN) a2k2: Virt_addr:ffff83011c600000 MFN:11c600 > (XEN) a2k2: Virt_addr:ffff83011c400000 MFN:11c400 > (XEN) a2k2: Virt_addr:ffff83011c200000 MFN:11c200 > (XEN) a2k2: Virt_addr:ffff83011c000000 MFN:11c000 > (XEN) a2k2: Virt_addr:ffff83011be00000 MFN:11be00 >=20 > As per config.h file Xen memory map,the virtual mapping shows that the > memory is allocated in > 1:1 direct mapping of all physical memory .Can anyone elaborate > regarding this mapping ? It's not clear what you are asking. Can you be more precise? =20 > Now can I allocate this mapped memory reserved by Xen hypervisor to > any domain through any existing or my new hypercall? Again, it's not clear what you are asking. If you are asking if the guest can map the order=3D9 page into its memory space, I think the answer is no. If you are asking if Xen can use the memory on behalf of a domain, for example to copy data from the domain into Xen (like tmem does), I think the answer is yes.