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
 
   
 

xen-devel

[Xen-devel] Full translate patch, with grant-table blkif support

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Full translate patch, with grant-table blkif support
From: George Washington Dunlap III <dunlapg@xxxxxxxxx>
Date: Wed, 15 Jun 2005 15:14:20 -0400 (EDT)
Cc: michael.fetterman@xxxxxxxxx
Delivery-date: Wed, 15 Jun 2005 19:13:28 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Here's a patch that will allow domains to run in full translate shadow mode, using a block driver with grant tables. (Network drivers in translate mode still not implemented.)

More specifically, this patch:
* Allows a domU to be built with CONFIG_XEN_SHADOW_TRANSLATE_MODE. This basically disables access to the m2p table, takes out some of the mm_[un]pin optimizations. Currently, it also adds back writing to L2 pagetables. * Adds a "linuxtranslate" builder, which will build a linux domain in translate mode. * Makes some mods to the way the hypervisor handles shadow translate mode. It also adds a new grant table op, "get_shared_mfn", which will return the mfn of the first page of the grant table shared area within the hypervisor. * All references outside a hypervisor to a translated domain's pages must be in gpfns, not mfns. The hypervisor will translate from pfn to mfn for the mapping. To make this easier, certain information is translated from mfn to gpfn before the hypervisor gives it to user space. (For example, the shared_info_pfn of the domain_info struct is changed to a pfn, so that xcs and friends work without modification.) Currently, other information (such as cr3) is not translated; so if you want to walk a translated domain's page tables, you will have to translate the cr3 from mfn to pfn before mapping it.

Let us know what you guys think.

Peace,
 -George

+-------------------+----------------------------------------
| dunlapg@xxxxxxxxx | http://www-personal.umich.edu/~dunlapg +-------------------+----------------------------------------
|  Who could move a mountain, who could love their enemy?
|  Who could rejoice in pain, and turn the other cheek?
|       - Rich Mullins, "Surely God is With Us"
+------------------------------------------------------------
| Outlaw Junk Email! Support HR 1748 (www.cauce.org)

Attachment: fulltranslate.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Full translate patch, with grant-table blkif support, George Washington Dunlap III <=