From: Ruslan Nikolaev Subject: Mmap to user space (question) Date: Tue, 5 Oct 2010 16:10:40 -0700 (PDT) Message-ID: <198209.73000.qm@web113603.mail.gq1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Note: I already posted the message on xci-devel, but I think this list is better suited for this question. So, I duplicated it here. ---- Hi I need to map shared_info (provided by hypervisor to each guest) to user space (read-only access). I am curious how I can do it, and if there are some good examples for the case if NO autotranslation is available. (BTW, Am I correct that I can use regular vm_insert_page or remap_pfn_range if autotranslation is available?) If I am correct, shared_info page is mapped initially into some fixmap area in the guest. However, no actual pfn exists for the page. Instead, guest gets mfn address from start_info. Now, what is the standard procedure to handle this situation? I found xen_remap_domain_mfn_range function, but not sure if it is what I am looking for. Also, I am not sure if I need to update grant tables. I would greatly appreciate if someone can enlighten me on this issue, and, perhaps, refer to some examples. Thank you! Ruslan.