[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] pfn to mfn mapping for HVM domains?


  • To: "Bryan D. Payne" <bryan@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AccTjESQgubb139/EduwVgANk04WTA==
  • Thread-topic: [Xen-devel] pfn to mfn mapping for HVM domains?

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.