[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] allow foreign domain page mapping of DOMID_XEN/DOMID_IO
# HG changeset patch # User awilliam@xxxxxxxxxxxx # Node ID 45f79978ceb5e93f42dc610cc93ad79b0c63055b # Parent bc3044bf49284178fce0d6296b16ac31f2376368 [IA64] allow foreign domain page mapping of DOMID_XEN/DOMID_IO DOMID_XEN is used by xenmon, xentrace. Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- xen/arch/ia64/xen/mm.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff -r bc3044bf4928 -r 45f79978ceb5 xen/arch/ia64/xen/mm.c --- a/xen/arch/ia64/xen/mm.c Thu Dec 07 15:00:49 2006 -0700 +++ b/xen/arch/ia64/xen/mm.c Thu Dec 07 15:02:37 2006 -0700 @@ -1295,11 +1295,13 @@ __dom0vp_add_physmap(struct domain* d, u if (unlikely(rd == d)) goto out1; - if (is_gmfn) { - if (domid == DOMID_XEN || domid == DOMID_IO) - goto out1; + /* + * DOMID_XEN and DOMID_IO don't have their own p2m table. + * It can be considered that their p2m conversion is p==m. + */ + if (likely(is_gmfn && domid != DOMID_XEN && domid != DOMID_IO)) mfn = gmfn_to_mfn(rd, mfn_or_gmfn); - } else + else mfn = mfn_or_gmfn; if (unlikely(!mfn_valid(mfn) || get_page(mfn_to_page(mfn), rd) == 0)) goto out1; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |