[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] about xen memory: what does virt_to_mfn() mean?



On Thu, Jun 13, 2013 at 02:21:57PM +0800, yandong han wrote:
> hi,all
> 
> I recently encoutered a piece of  code in the following ,
> 
> + //grab a page we'll share with the guest
> + comm->shared_page_ptr = alloc_xenheap_page();
> + comm->shared_page_mfn = virt_to_mfn(comm->shared_page_ptr);
> +
> + page = mfn_to_page(comm->shared_page_mfn);
> + share_xen_page_with_privileged_guests(page, XENSHARE_writable);
> 
> I cannot figure out the  theory or principle of it, can anyone explain to
> me?  please
> 
> 

You will know it better if you understand the concepts of Xen
terminologies.

http://wiki.xen.org/wiki/XenTerminology


Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.