Skip to contentSkip to conversation

More verbose log when vmx_decode() fails.

PATCH In review Arun Sharma 1 participant 1 message Jul 10, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 2/5 More verbose log when vmx_decode() fails.

More verbose log when vmx_decode() fails.

xen/arch/x86/vmx_platform.c +4 -1
diff -r eef933138a84 -r 2ae37d882cf5 xen/arch/x86/vmx_platform.c
@@ -655,8 +655,11 @@
 
     init_instruction(&mmio_inst);
     
-    if (vmx_decode(inst, &mmio_inst) == DECODE_failure)
+    if (vmx_decode(inst, &mmio_inst) == DECODE_failure) {
+        printk("vmx decode failure: eip=%lx, va=%lx\n %x %x %x %x\n", eip, va, 
+               inst[0], inst[1], inst[2], inst[3]);
         domain_crash_synchronous();
+    }
 
     __vmwrite(GUEST_RIP, eip + inst_len);
     store_cpu_user_regs(inst_decoder_regs);