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] fix xenctx for x86_64

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch] fix xenctx for x86_64
From: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Date: Sat, 17 Jun 2006 16:41:01 +0900
Delivery-date: Sat, 17 Jun 2006 00:42:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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, all

I have no x86_64 machine now.
So this patch is not tested.
But I think this is obviously wrong.
Please check x86_64 people. :-)

Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>

Best Regards,

Akio Takebe

diff -r b87ff075dab9 tools/xentrace/xenctx.c
--- a/tools/xentrace/xenctx.c   Thu Jun 08 11:08:35 2006 -0600
+++ b/tools/xentrace/xenctx.c   Sun Jun 25 13:35:32 2006 +0900
@@ -393,7 +393,11 @@ void dump_ctx(int vcpu)
     }
 
     print_ctx(&ctx);
+#if defined (__i386__)
     if (is_kernel_text(ctx.user_regs.eip))
+#elif defined (__x86_64__)
+    if (is_kernel_text(ctx.user_regs.rip))
+#endif
         print_stack(&ctx, vcpu);
 
     ret = xc_domain_unpause(xc_handle, domid);

Attachment: xenctx_x86_64.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>