WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xci-devel

[Xci-devel] Mmap to user space (question)

To: xci-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xci-devel] Mmap to user space (question)
From: Ruslan Nikolaev <nruslan_devel@xxxxxxxxx>
Date: Mon, 4 Oct 2010 19:01:22 -0700 (PDT)
Delivery-date: Mon, 04 Oct 2010 19:01:26 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1286244083; bh=NF9EJEP0uWbLLL5XiyxddgZYbqsVzhcQ2pl8kgHp3qk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=fLQez7tkgD6UBRu9PwMuCXhNGLxp7z2Xpb9I5Fa3dLaV4ikur7q2Qtsb+JLXFOW4pUW1PuOHDkJNF1Hvl6PFyk5DaALdIgs5lzlhXq5SW7jYjZpSz8gXG+jb9YrlbVC9BvOtBzKOC3aDR3+3ZonvfVClfMhuXgBtomZb9PVS0fc=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=RY9MwMRk3J45HVGn8BCBwzC5uZKFIQ+PvA2d3bH1ROa5BL0TYY+/nDJ7Ae7FNg0dFkKx8ciwL9gRd7Vvsjpoy8s/T2EI0UNaYsuzxX1zkmTcu3ehP4vscjfbeXiPJUKfiPz2QILpgjh4x7dpmc8pIv5ajlgpIl2o6YPOrGm7BAg=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-archive: <http://lists.xensource.com/archives/html/xci-devel>
List-help: <mailto:xci-devel-request@lists.xensource.com?subject=help>
List-id: xci-devel.lists.xensource.com
List-post: <mailto:xci-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xci-devel>, <mailto:xci-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xci-devel>, <mailto:xci-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xci-devel-bounces@xxxxxxxxxxxxxxxxxxx
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.


      

_______________________________________________
Xci-devel mailing list
Xci-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xci-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xci-devel] Mmap to user space (question), Ruslan Nikolaev <=