From: Tim Deegan Subject: Re: How to get guest PTEs info of a HVM with EPT Date: Thu, 20 Jan 2011 09:44:37 +0000 Message-ID: <20110120094437.GI8286@whitby.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: KennyChen Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org At 02:50 +0000 on 20 Jan (1295491817), KennyChen wrote: > When EPT is enabled for a HVM guest, is that possible for hypervisor > to get the PTE information of guest page table? e.g, R/W, Supervisor > flags? Yes, of course - you know the guest's CR3 value and you can map all its memory so you can read its pagetables. Look at hap_gva_to_gfn() and how it calls guest_walk_tables(). You can even do it from userspace in dom0 - see xc_translate_foreign_address(). What you can't do easily without shadow paging is _control_ the pagetable values. Cheers, Tim. -- Tim Deegan Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)