[Xen-devel] [PATCH v3 5/5] xenalyze: Build for Both ARM and x86 Platforms

2016-04-04 Thread Benjamin Sanda
Modified to provide building of the xenalyze binary for both ARM and x86 platforms. The xenalyze binary is now built as part of the BIN list for both platforms. Signed-off-by: Benjamin Sanda Acked-by: Wei Liu --- Changed since v2: * No changes. --- Changed since v1: * Changed xenalyze

[Xen-devel] [PATCH v3 3/5] xentrace: Timestamp support for ARM platform

2016-04-04 Thread Benjamin Sanda
. Also defined cycles_t as uint64_t to simplify casting. get_s_time() was also modified to now use the updated get_cycles() to retrieve the tick count instead of directly reading it. Signed-off-by: Benjamin Sanda --- Changed since v2: * Combined v2 patches 7 and 6 into one patch in v3. No code

[Xen-devel] [PATCH v3 4/5] xentrace: Trace Buffer Initialization on ARM

2016-04-04 Thread Benjamin Sanda
Added call to init_trace_bufs() to initialize the trace buffers for use by xentrace. Signed-off-by: Benjamin Sanda --- Changed since v2: * No changes --- Changed since v1: * No changes --- xen/arch/arm/setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/arm/setup.c b

[Xen-devel] [PATCH v3 1/5] xentrace: Common Support for get_pg_owner/put_pg_owner on ARM and x86

2016-04-04 Thread Benjamin Sanda
compilation check was added in get_pg_owner() for the is_pvh_domain(curr) check which is only valid to perform on x86 platforms. Signed-off-by: Benjamin Sanda --- Changed since v2: * Combined patches 3-5 from v2 into one patch for v3. No code change. --- xen/arch/x86/mm.c | 48

[Xen-devel] [PATCH v3 0/5] xentrace/xenalyze Support on ARM

2016-04-04 Thread Benjamin Sanda
unclear in purpose * Corrected all commit messages to be line limited to 72 chars * Implemented v1 review comments as indicated in each file's commit log. Benjamin Sanda (5): xentrace: Common Support for get_pg_owner/put_pg_owner on ARM and x86 xentrace: Memory/Page Mapping suppor

[Xen-devel] [PATCH v3 2/5] xentrace: Memory/Page Mapping support for DOMID_XEN on ARM

2016-04-04 Thread Benjamin Sanda
now in the mm.h common header. * Added check to determine page rw/ro type to correctly set the paddr_t to p2m_ram_rw or p2m_ram_ro instead of assuming p2m_ram_rw * Corrected block comment format to conform to Xen coding standard Signed-off-by: Benjamin Sanda --- xen/arch/arm/mm.c | 3

[Xen-devel] [PATCH V2 8/9] xentrace: Support for ARM platform

2016-04-01 Thread Benjamin Sanda
do not need translation from PFN. Check added to determine read/write or read only page type when requesting DOMID_XEN. This is done by checking the u.inuse.type_info parameter of the requested page. The page rw/ro paddr_t type is then set accordingly. Signed-off-by: Benjamin Sanda

[Xen-devel] [PATCH V2 9/9] xentrace: Support for ARM platform

2016-04-01 Thread Benjamin Sanda
Modified to provide support for xentrace on the ARM platform. Added call to init_trace_bufs() to initialize the trace buffers for use by xentrace. Signed-off-by: Benjamin Sanda --- Changed since v1: * No changes --- xen/arch/arm/setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[Xen-devel] [PATCH V2 6/9] xentrace: Support for ARM platform

2016-04-01 Thread Benjamin Sanda
in time.h and to commonize it with the get_s_time() function. get_s_time() was also modified to now use the updated get_cycles() to retrieve the tick count instead of directly reading it. Signed-off-by: Benjamin Sanda --- xen/arch/arm/time.c | 9 - 1 file changed, 8 insertions(+), 1

[Xen-devel] [PATCH V2 1/9] xenalyze: Support for ARM platform

2016-04-01 Thread Benjamin Sanda
Modified to provide building of the xenalyze binary for ARM platforms. This was done in conjunction with patches to xentrace allowing its use on ARM. The xenalyze binary is now built as part of the BIN list. Signed-off-by: Benjamin Sanda --- Changed since v1: * changed xenalyze target from

[Xen-devel] [PATCH V2 7/9] xentrace: Support for ARM platform

2016-04-01 Thread Benjamin Sanda
. Also defined cycles_t as uint64_t to simplify casting. Signed-off-by: Benjamin Sanda --- Changed since v1: * Moved get_cycles() to time.c * Added function prototype for get_cycles() --- xen/include/asm-arm/time.h | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a

[Xen-devel] [PATCH V2 0/9] xentrace/xenalyze support on ARM

2016-04-01 Thread Benjamin Sanda
, XENMAPSPACE_gmfn_foreign page mapping and address translation for DOMID_XEN is corrected in mm.c and p2m.c, and timestamping for the trace buffers is corrected in time.c/.h. Finally the xenaylze makefile is configured to build the tool for ARM. Benjamin Sanda (9): xenalyze: Support for ARM platform

[Xen-devel] [PATCH V2 3/9] xentrace: Support for ARM platform

2016-04-01 Thread Benjamin Sanda
Moved get_pg_owner() and put_pg_owner() from the arch specific mm.c source files into the common page_alloc.c source. This was done as theses functions are now needed by both architectures to support xentrace on the ARM platform. Forward declarations were added to mm.h. Signed-off-by: Benjamin

[Xen-devel] [PATCH V2 2/9] xentrace: Support for ARM platform

2016-04-01 Thread Benjamin Sanda
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

[Xen-devel] [PATCH V2 0/9] xentrace/xenalyze support on ARM

2016-04-01 Thread Benjamin Sanda
uncessesary and unclear in purpose * Corrected all commit messages to be line limited to 72 chars * Implimented v1 review comments as indicated in each file's commit log. Benjamin Sanda (9): xenalyze: Support for ARM platform xentrace: Support for ARM platform xentrace: Support fo

[Xen-devel] [PATCH V2 4/9] xentrace: Support for ARM platform

2016-04-01 Thread Benjamin Sanda
compilation check was added in get_pg_owner() for the is_pvh_domain(curr) check which is only valid to perform on X86 platforms. Signed-off-by: Benjamin Sanda --- xen/common/page_alloc.c | 51 + 1 file changed, 51 insertions(+) diff --git a/xen/common

[Xen-devel] [PATCH V2 5/9] xentrace: Support for ARM platform

2016-04-01 Thread Benjamin Sanda
Moved get_pg_owner() and put_pg_owner() from the arch specific mm.c source files into the common page_alloc.c source. This was done as theses functions are now needed by both architectures to support xentrace on the ARM platform. Forward declarations were added to mm.h. Signed-off-by: Benjamin

[Xen-devel] [PATCH 2/6] xenalyze: Support for ARM platform

2016-03-19 Thread Benjamin Sanda
From: bensanda Modified to provide building of the xenalyze binary for ARM platforms. This was done in conjunction with patches to xentrace allowing its use on ARM. The xenalyze binary is now built as part of the SBIN list. Signed-off-by: Benjamin Sanda --- tools/xentrace/Makefile | 3

[Xen-devel] [PATCH 4/6] xentrace: ARM platform DOMID_XEN mapping support

2016-03-19 Thread Benjamin Sanda
adde to skip page to MFN translation (xentrace sends a MFN dirrectly and so does not need to be translated). Signed-off-by: Benjamin Sanda --- xen/arch/arm/mm.c | 56 +-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/xen/arch

[Xen-devel] [PATCH 6/6] xentrace: ARM platform timestamp support

2016-03-19 Thread Benjamin Sanda
From: bensanda Modified to provide support for xentrace on the ARM platform. Changed get_cycles() to return the core timestamp tick count for use by the trace buffer timestamping routines in xentrace. Signed-off-by: Benjamin Sanda --- xen/include/asm-arm/time.h | 13 - 1 file

[Xen-devel] [PATCH 5/6] xentrace: Trace buffer support for ARM platform

2016-03-19 Thread Benjamin Sanda
From: bensanda Modified to provide support for xentrace on the ARM platform. Added call to init_trace_bufs() to initialize the trace buffers for use by xentrace. Signed-off-by: Benjamin Sanda --- xen/arch/arm/setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/arm/setup.c

[Xen-devel] [PATCH 3/6] xentrace: P2M lookup suport for ARM platform

2016-03-19 Thread Benjamin Sanda
to provide correct access. Signed-off-by: Benjamin Sanda --- xen/arch/arm/p2m.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index a2a9c4b..2e7da43 100644 --- a/xen/arch/arm/p2m.c +++ b/xen/arch/arm/p2m.c

[Xen-devel] [PATCH 1/6] Flask: Support for ARM xentrace

2016-03-19 Thread Benjamin Sanda
From: bensanda Modified to provide support for xentrace on the ARM platform. Added flask credential to allow dom0 dom_xen mapping and write access for trace buffers. Signed-off-by: Benjamin Sanda --- tools/flask/policy/policy/modules/xen/xen.te | 2 ++ 1 file changed, 2 insertions(+) diff

[Xen-devel] [PATCH 0/6] xentrace/xenalyze support on ARM

2016-03-18 Thread Benjamin Sanda
From: bensanda This patch sets adds support for xentrace and xenalyze to the ARM platform. The Xen heap memory mapping, timestamping, and P2M translation needed by xentrace is corrected for operation on the ARM platform using the x86 platform as reference. Trace buffer initialization is added to