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

Re: [Xen-devel] Questions about ept

To: YAO <yffbrave@xxxxxxxxx>
Subject: Re: [Xen-devel] Questions about ept
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Thu, 9 Jun 2011 09:59:54 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 09 Jun 2011 02:03:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTinCbwMfwCT5zNb_esP+6ANmv5RbOg@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <BANLkTinCbwMfwCT5zNb_esP+6ANmv5RbOg@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
Hi, 

At 15:52 +0800 on 09 Jun (1307634772), YAO wrote:
> Hi, I've been reading the code in xen/arch/x86/mm/hap and got some
> questions:
> 
> 1. Are they the support for intel ept? If so, where is the support for amd
> rvi?

They are the generic support for hardware-assisted paging, i.e. EPT or
RVI.  RVI is called NPT in the Xen code (and in the AMD manuals). 

> 2. I read the intel manual, it says EPT paging is similar to IA-32e mode
> which has 4 level page. So, if the xen is running under 32bit PAE mode, is
> the ept paging still 4 levels?

Yes.

> by the way, is dom0 always 32bit pae?

No.

> 3.EPT is used for GPA->HPA, so is the case of p2m(if I remember correctly),
> what's the relationship between them? why do we need p2m when we use hap?

Xen needs to be able to look up gfn->mfn for its own purposes, and the
p2m contains other informatio. like typing.  When a domain is using HAP,
its p2m table is stored in the form that the CPU expects for the EPT/RVI
table, so there's no wasted effort or space.

> 4.Can I use ept to control access to some of the guest pages?

Yes.  Have a look at the mem_event domctls for a way to do this from
dom0 with callbacks when the guest violates the access controls. 

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>