From: Keir Fraser Subject: Re: xc_domain_translate_gpfn_list vanished from unstable Date: Wed, 10 Jan 2007 10:09:34 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: 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: James Pendergrass , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 9/1/07 20:48, "James Pendergrass" wrote: > but this fails for > HVM's (changeset 13282:9865145e53eb) > when xc_translate_foreign_address claims that it is unable to map the > PD of the HVM. > > Presumably this is because the cr3 value returned by > xc_vcpu_getcontext holds the machine frame number > page tables (presumably this is the guest cr3 so the page tables map > gvas to gpfns and not the host cr3 that > is used by the hardware to map gvas to gmfns). No, CR3 is a pseudophysical address (it's the value that the guest wrote, with no translation done on it). If the failure message mentions 'PD' rather than 'PML4' then I think it's the table 2 levels down that isn't getting mapped. Add some extra tracing to the function and check that the PDEs you've seen on the pagetable walk actually look sane. > Can you suggest an approach that would actually work? Expect to need to fix up functions in libxc. Some of these are only used by debug/diagnostic tools so they're not always up to date. -- Keir