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] Re: Question about EPT translation

To: Daniel Castro <evil.dani@xxxxxxxxx>
Subject: Re: [Xen-devel] Re: Question about EPT translation
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Tue, 31 May 2011 10:19:24 +0100
Cc: henanwxr <henanwxr@xxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 31 May 2011 07:33:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTi=1nOQ2L9ab+nXi=Pb4VSn4qqxJxw@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>
Organization: Citrix Systems, Inc.
References: <BLU163-ds373A534D93901C3E0FB82DE780@xxxxxxx> <BANLkTi=1nOQ2L9ab+nXi=Pb4VSn4qqxJxw@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Sun, 2011-05-29 at 22:49 +0100, Daniel Castro wrote:
> 2011/5/29 henanwxr <henanwxr@xxxxxxxxxxx>:
> > 1. Does hvmoader need EPT for address translation when it  is running?
> If you are talking to pure HVM Guest then yes.

It doesn't have to be EPT (which is the name of an Intel specific
hardware technology). hvmloader needs some sort of page table
translation, which might be HAP (the generic name for both Intel's EPT
and AMD's nested paging) or shadow page tables depending on the hardware
capabilities your system has.

> > 2. I am sure the guest kernel need EPT when running, but not sure whether
> > hvmloader also needs. I think  when virtual bios in hvmloader running, we
> > should make virtual bios sees as if the memory starting from 0, so hvmloader
> > needs EPT, am I right?
> Yes

Again, correct modulo the above. hvmloader runs in the guest's context
and hence needs everything the guest kernel will need.

Actually in the case of hvmloader "needs" is rather a strong word, "runs
in that environment by design" would perhaps be more accurate.

> > 3. If hvmloader needs EPT, where we construct EPT structure for it? I can't
> > find correlative part  in code flow.
> The address translation is not done by hvmloader, hvmloader is only
> used to deploy data to memory, the translation is done via Hypervisor
> aided by hardware.

Ian.


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

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