Message ID | 1473938919-31976-6-git-send-email-julien.grall@arm.com |
---|---|
State | New |
Headers | show |
diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index 950a607..5cf136f 100644 --- a/xen/arch/arm/p2m.c +++ b/xen/arch/arm/p2m.c @@ -1391,6 +1391,7 @@ int p2m_init(struct domain *d) if ( rc != 0 ) return rc; + p2m->domain = d; p2m->max_mapped_gfn = _gfn(0); p2m->lowest_mapped_gfn = _gfn(ULONG_MAX); diff --git a/xen/include/asm-arm/p2m.h b/xen/include/asm-arm/p2m.h index b9269e4..b27a3a1 100644 --- a/xen/include/asm-arm/p2m.h +++ b/xen/include/asm-arm/p2m.h @@ -81,6 +81,9 @@ struct p2m_domain { * enough available bits to store this information. */ struct radix_tree_root mem_access_settings; + + /* back pointer to domain */ + struct domain *domain; }; /*
The back pointer will be usefult later to get the domain when we only have the p2m in hand. Signed-off-by: Julien Grall <julien.grall@arm.com> --- Changes in v2: - Patch added --- xen/arch/arm/p2m.c | 1 + xen/include/asm-arm/p2m.h | 3 +++ 2 files changed, 4 insertions(+)