From: Tim Deegan Subject: Re: Can't map the page referenced by HVM-DomU CR3 in Dom0 Date: Mon, 18 Apr 2011 10:34:09 +0100 Message-ID: <20110418093409.GA16867@whitby.uk.xensource.com> References: <4DA84BFE.4060904@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <4DA84BFE.4060904@gmx.at> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: david Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org At 14:45 +0100 on 15 Apr (1302878734), david wrote: > I'm trying to access the page containing the paging information for a > DomU from Dom0. > > I'm doing that by translating the address contained in the DomU CR3 > register with xc_translate_foreign_address (libxc) and try to map the > returned frame number with xc_map_foreign_range. > > The problem is, that the return value from xc_translate_foreign_address > is 0 (guest cr3 is 0x002f3000 in my case), which indicates an error > (corresponding to the code comments). After some debugging I have > discovered, that pte becomes 0 when level=2 and therefore the function > returns 0 on line 79: How often does this happen? On every attempt or only from time to time? Have you checked (say, from inside the guest) that the level-2 PTE isn't actually zero? Cheers, Tim. -- Tim Deegan Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)