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

[Xen-devel] [PATCH] Establishing 1:1 direct mapping for HVM at runtime


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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

 


Rackspace

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