From: Tim Deegan Subject: Re: Question about EPT translation Date: Mon, 30 May 2011 09:42:39 +0100 Message-ID: <20110530084239.GA2778@ocelot.phlegethon.org> References: <1306513043984-4432564.post@n5.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <1306513043984-4432564.post@n5.nabble.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: confucius Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, At 09:17 -0700 on 27 May (1306487843), confucius wrote: > Hi,everyone. I have some questions. > 1. Does hvmoader need EPT for address translation when it is running? _All_ HVM guests need _either_ EPT/NPT _or_ shadow pagetables, to make the extra translation from guest physical addresses to machine addresses. > 3. If hvmloader needs EPT, where we construct EPT structure for it? I can't > find correlative part in code flow. Did you try searching the code for "EPT"? The EPT datastructures are construced in p2m_ept.c. (p2m is the general term in Xen for the table that maps physical addresses to machine addresses). Tim. -- Tim Deegan We were back to the sad age-old knowledge that there are only two genuine aphrodisiacs: youth and boredom. [ Alistair Cooke, "Letter From America", 12/5/98 ]