Port-xen archive

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

Re: [patch] M2P/P2M abstraction



Christoph Egger wrote:
Jean-Yves Migeon wrote:
Hi list,

M2P and P2M mechanisms are rather MD than MI. AFAIK, for Xen, the
xpmap_phys_to_machine_mapping/machine_to_phys is x86 specific.

This small patch [1] makes use of abstraction macros for the M2P
translation, so that Xen drivers do not use M2P/P2M arrays directly.

Compile tested against XEN{2,3}_DOM{0,U}, and their PAE version. Please
review.

[1] http://www.netbsd.org/~jym/p2m.diff

The changes in the patch are mechanical. The diff on itself is ok for
me, but if you intend to introduce an MI API, then it needs to have
an unique namespace prefix.

Suggestions are open. Something like 'xpmap'?

I use them to track down the different code paths requiring translation from/to MFNs.

The current names are those found in XenSource's Linux.

--
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost



Home | Main Index | Thread Index | Old Index