[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen/arm: p2m: Add a back pointer to domain in p2m_domain
commit 5e504b74371410e81e88f433eb8f4cfc36119b28 Author: Julien Grall <julien.grall@xxxxxxx> AuthorDate: Thu Sep 15 12:28:21 2016 +0100 Commit: Stefano Stabellini <sstabellini@xxxxxxxxxx> CommitDate: Tue Sep 27 18:13:46 2016 -0700 xen/arm: p2m: Add a back pointer to domain in p2m_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@xxxxxxx> Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> Tested-by: Tamas K Lengyel <tamas@xxxxxxxxxxxxx> --- xen/arch/arm/p2m.c | 1 + xen/include/asm-arm/p2m.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index fe0ed9f..2bddcd7 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 d0dae2e..4445045 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; }; /* -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |