[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH V2 2/9] xentrace: Support for ARM platform
Modified xenmem_add_to_physmap_one() to provide support for xentrace on the ARM platform. Checks for DOMID_XEN added via new function, get_pg_owner, ported and commonized from x86 code base. This provides correct calls to rcu_lock_domain() when DOMID_XEN is requested. Signed-off-by: Benjamin Sanda <ben.sanda@xxxxxxxxxxxxxxx> --- Changed since v1: * Moved get_pg_owner() from the arch specific mm.c source files into the common page_alloc.c source. This was done as get_pg_owner() is now needed by both architectures and is essentially identical in both. * Moved put_pg_owner from the arch specific mm.c source files into the common page_alloc.c source to make available to all platforms. * Removed DOMID_XEN check from page_to_mfn(page) call in xenmem_add_to_physmap_one() per review comment (check considered to be in excess of need). * Removed forward declare of get_pg_owner from mm.c (arm) as it is now in the mm.h common header. --- xen/arch/arm/mm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index 81f9e2e..19d6c2c 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -1099,7 +1099,8 @@ int xenmem_add_to_physmap_one( { struct domain *od; p2m_type_t p2mt; - od = rcu_lock_domain_by_any_id(foreign_domid); + od = get_pg_owner(foreign_domid); + if ( od == NULL ) return -ESRCH; -- 2.5.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |