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] [PATCH] Establishing 1:1 direct mapping for HVM at runtime

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Establishing 1:1 direct mapping for HVM at runtime
From: "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
Date: Fri, 3 Feb 2006 01:24:19 -0800
Delivery-date: Fri, 03 Feb 2006 09:34:38 +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
Thread-index: AcYoo5wjriHRJ06tSDWmGF5CHkn5YQ==
Thread-topic: [PATCH] Establishing 1:1 direct mapping for HVM at runtime
The patch builds the phys_to_machine_mapping array in Xen rather than
reusing the 1:1 page table built by the builder, and it also establishes
the 1:1 direct mapping at runtime a la shadow page tables. Since the
builder constructs the full 1:1 direct mapping (but <4GB), the current
implementation wastes memory but cannot support guests with >=4GB memory
(even for x64-64).

This patch is also required for HVM support on the PAE host. That patch
should be sent soon. Please apply.

For SVM
=======
I think the svm code needs changes. Please look at the changes to vmx.c
and vmcs.c; should be straightforward. 

Signed-off-by: Jun Nakajima <jun.nakajima@xxxxxxxxx>
Signed-off-by: Xiaohui Xin <xiaohui.xin@xxxxxxxxx>
----
 tools/libxc/xc_hvm_build.c          |  259 -------------------
 xen/arch/x86/hvm/hvm.c              |   20 +
 xen/arch/x86/hvm/vmx/vmcs.c         |    4 
 xen/arch/x86/hvm/vmx/vmx.c          |   10 
 xen/arch/x86/shadow.c               |   76 +++++
 xen/arch/x86/shadow32.c             |  264 ++++++++++++++-----
 xen/arch/x86/shadow_public.c        |  489
+++++++++++++++++++++---------------
 xen/include/asm-x86/mm.h            |   11 
 xen/include/asm-x86/shadow.h        |    7 
 xen/include/asm-x86/shadow_64.h     |    2 
 xen/include/asm-x86/shadow_public.h |    5 
 11 files changed, 620 insertions(+), 527 deletions(-)

Jun
---
Intel Open Source Technology Center 

Attachment: shadow_direct_0203.patch
Description: shadow_direct_0203.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Establishing 1:1 direct mapping for HVM at runtime, Nakajima, Jun <=