WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xentrace buffer alignment

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xentrace buffer alignment
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Thu, 24 Nov 2005 21:06:40 +0900
Delivery-date: Thu, 24 Nov 2005 12:07:07 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I'm working to xentrace execution on ia64 now.

When the "tbuf_size=" option was added,
Xen cannot be booted and show the following messages.

(XEN) About to call init_trace_bufs()
(XEN) Xen trace buffers: initialised
(XEN) About to call schedulers_start dom0=f0000000040ec100, 
idle0_dom=f0000000040d2e10
(XEN) ia64_handle_reflection: reflecting with priv=0!!

Unaligned Reference fault occurred in trace function.
This patch correct alignment of the trace buffer. 

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Thanks,
 kan

diff -r 51f32d60536b xen/include/public/trace.h
--- a/xen/include/public/trace.h        Fri Nov 18 00:35:14 2005
+++ b/xen/include/public/trace.h        Thu Nov 24 20:49:02 2005
@@ -69,7 +69,7 @@
     unsigned int  prod;      /* Next item to be produced by Xen.           */
     unsigned int  nr_recs;   /* Number of records in this trace buffer.    */
     /* 'nr_recs' records follow immediately after the meta-data header.    */
-};
+} __attribute__((__aligned__(8))); /* 8 bytes alignment for ia64           */
 
 #endif /* __XEN_PUBLIC_TRACE_H__ */



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>