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

Re: [Xen-devel] Where and How the P2M table and M2P table create?

On Thu, Apr 14, 2016 at 7:37 AM, Yunqiang Gao <mrgao.buffoon@xxxxxxxxx> wrote:
> Hi,alls,
> As we know,in xen ,when create shadow page table and EPT page table,we need
> the p2m and m2p.I want to know when are the p2m been created.Was it created
> at the time of the creation of the domainU?Or at the beginning is a empty
> table and in the subsequent gradually established?

The mechanism of assigning memory to an HVM guest and populating the
p2m table is the same.  That is, the domain builder calls
"guest_populate_physmap()" hypercalls, which tell Xen, "put some
memory in this p2m region"; Xen will then allocate memory from the
free list and put it in the p2m.

> And how was it been created?

I'm not sure what you're asking here.  This might help you get better
feedback: http://wiki.xenproject.org/wiki/Asking_Developer_Questions

In any case, the questions you're asking sound like you want to make
some changes to the code; in which case, nothing will be useful unless
you can find 80% of what you need from the code itself.  I'd suggest
you start with searching under the source tree for "domain build" and
"domain create", and come back with specific clarifying questions.


Xen-devel mailing list



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