Skip to contentSkip to conversation

Improved error reporting on vmlaunch/vmresume failure.

PATCH New Arun Sharma 1 participant 1 message Aug 11, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 5/15 Improved error reporting on vmlaunch/vmresume failure.

Improved error reporting on vmlaunch/vmresume failure.

xen/arch/x86/vmx_vmcs.c +6 -0
diff -r e4ad3feadd4e -r 5b239652c912 xen/arch/x86/vmx_vmcs.c
@@ -529,11 +529,17 @@
 
 void vm_launch_fail(unsigned long eflags)
 {
+    unsigned long error;
+    __vmread(VM_INSTRUCTION_ERROR, &error);
+    printk("<vm_launch_fail> error code %lx\n", error);
     __vmx_bug(guest_cpu_user_regs());
 }
 
 void vm_resume_fail(unsigned long eflags)
 {
+    unsigned long error;
+    __vmread(VM_INSTRUCTION_ERROR, &error);
+    printk("<vm_resume_fail> error code %lx\n", error);
     __vmx_bug(guest_cpu_user_regs());
 }