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

[Xen-devel] [PATCH] Enable EPT (Extended PageTable)


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Xin, Xiaohui" <xiaohui.xin@xxxxxxxxx>
  • Date: Tue, 11 Mar 2008 17:17:04 +0800
  • Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
  • Delivery-date: Tue, 11 Mar 2008 02:20:03 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AciDWKwu7K/vxD2oRe2FSTe2tQ718g==
  • Thread-topic: [Xen-devel] [PATCH] Enable EPT (Extended PageTable)

The patch attached enables the EPT feature. When present, it provides a

direct mechanism to virtualize physical memory in HVM guests running on

processors with Intel(c) Virtualization Technology.

 

We now use the EPT page table as P2M (guest physical to machine

mapping), removing the linear page table when EPT is used for the domain

(see the new file p2m-ept.c). We did this by adding three operations in

the p2m_domain. If VT-d is enabled, the EPT page table will be used as

the VT-d page table as well (i.e. shared).

 

b/xen/arch/x86/mm/hap/p2m-ept.c    |  197 +++++++++++++++++++++++++++++++++++++

 tools/firmware/hvmloader/config.h  |    2

 tools/libxc/xc_hvm_build.c         |   15 ++

 xen/arch/x86/hvm/hvm.c             |   15 ++

 xen/arch/x86/hvm/vmx/vmcs.c        |   63 ++++++++++-

 xen/arch/x86/hvm/vmx/vmx.c         |  163 +++++++++++++++++++++++++++---

 xen/arch/x86/mm/hap/Makefile       |    1

 xen/arch/x86/mm/p2m.c              |   24 +++-

 xen/include/asm-x86/domain.h       |   26 ++++

 xen/include/asm-x86/hvm/domain.h   |    2

 xen/include/asm-x86/hvm/hvm.h      |    9 +

 xen/include/asm-x86/hvm/vmx/vmcs.h |   35 ++++++

 xen/include/asm-x86/hvm/vmx/vmx.h  |   71 ++++++++++++-

 xen/include/asm-x86/p2m.h          |   37 ++----

 xen/include/public/hvm/params.h    |    3

 15 files changed, 606 insertions(+), 57 deletions(-)

 

Signed-off-by: Xin Li xin.b.li@xxxxxxxxx

Signed-off-by: Jun Nakajima jun.nakajima@xxxxxxxxx

Signed-off-by: Xiaohui Xin <Xiaohui.xin@xxxxxxxxx>

 

Attachment: ept.patch
Description: ept.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®.