Skip to contentSkip to conversation

fix xenctx for x86_64

PATCH In review Akio Takebe 2 participants 4 messages Jun 17, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix xenctx for x86_64

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. :-)

Best Regards,

Akio Takebe

tools/xentrace/xenctx.c +4 -0
diff -r b87ff075dab9 tools/xentrace/xenctx.c
@@ -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);
tools/xentrace/xenctx.c +4 -0
diff -r b87ff075dab9 tools/xentrace/xenctx.c
@@ -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);

_______________________________________________
Xen-devel mailing list [email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
In reply to Akio Takebe
Quoted 2 lines · Akio Takebe

I'm very sorry. This fix was already done by Tristan. His patch posted to xen-ia64-devel, but not apply yet.

Hopefully not that particular fix. The existing non-ifdef code works fine on both i386 and x86/64.

-- Keir

#1 lore raw
In reply to Akio Takebe

Hi, all

I'm very sorry. This fix was already done by Tristan. His patch posted to xen-ia64-devel, but not apply yet.

Best Regards,

Akio Takebe

Quoted 34 lines

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. :-)

Best Regards,

Akio Takebe

diff -r b87ff075dab9 tools/xentrace/xenctx.c

tools/xentrace/xenctx.c +4 -1
@@ -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);
 
-------------------------------text/plain-------------------------------

_______________________________________________
Xen-devel mailing list [email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
In reply to Keir Fraser

Hi, Keir

Yes, Tristan's patch is non-ifdef fix.

Best Regards,

Akio Takebe

Quoted 10 lines · Akio Takebe
Quoted 3 lines

I'm very sorry. This fix was already done by Tristan. His patch posted to xen-ia64-devel, but not apply yet.

Hopefully not that particular fix. The existing non-ifdef code works fine on both i386 and x86/64.

-- Keir