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] pfn to mfn mapping for HVM domains?

To: "Bryan D. Payne" <bryan@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] pfn to mfn mapping for HVM domains?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 29 Nov 2006 07:59:17 +0000
Delivery-date: Tue, 28 Nov 2006 23:59:36 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <BC4A5781-A08A-483E-9F90-78368BA5AFD0@xxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccTjESQgubb139/EduwVgANk04WTA==
Thread-topic: [Xen-devel] pfn to mfn mapping for HVM domains?
User-agent: Microsoft-Entourage/11.2.5.060620
On 29/11/06 5:54 am, "Bryan D. Payne" <bryan@xxxxxxxxxxxx> wrote:

> It turns out that the problem I ran into relates to how the value
> "swapper_pg_dir" from the System map is used.  For PV domains, this
> value points to a location in memory that holds the virtual address
> of the base of the kpgd.  For HVM domains, this value points to the
> base of the kpgd.  I'm not sure why the difference exists (I'd
> certainly be interested in learning if someone could explain it), but
> this was the key insight that fixed my problems.

It's the difference between 'pgd_t *' and 'pgd_t []'. PV guests get their
swapper_pgdir from the domain builder rather than having it defined as an
array in their static data section.

 -- Keir



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

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