ia64/xen-unstable

changeset 6114:d1034eae9708

Improved error reporting on vmlaunch/vmresume failure.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Aug 11 21:01:10 2005 +0000 (2005-08-11)
parents c9bbfb42ba84
children bf98996dded2
files xen/arch/x86/vmx_vmcs.c
line diff
     1.1 --- a/xen/arch/x86/vmx_vmcs.c	Thu Aug 11 20:58:08 2005 +0000
     1.2 +++ b/xen/arch/x86/vmx_vmcs.c	Thu Aug 11 21:01:10 2005 +0000
     1.3 @@ -523,11 +523,17 @@ int store_vmcs(struct arch_vmx_struct *a
     1.4  
     1.5  void vm_launch_fail(unsigned long eflags)
     1.6  {
     1.7 +    unsigned long error;
     1.8 +    __vmread(VM_INSTRUCTION_ERROR, &error);
     1.9 +    printk("<vm_launch_fail> error code %lx\n", error);
    1.10      __vmx_bug(guest_cpu_user_regs());
    1.11  }
    1.12  
    1.13  void vm_resume_fail(unsigned long eflags)
    1.14  {
    1.15 +    unsigned long error;
    1.16 +    __vmread(VM_INSTRUCTION_ERROR, &error);
    1.17 +    printk("<vm_resume_fail> error code %lx\n", error);
    1.18      __vmx_bug(guest_cpu_user_regs());
    1.19  }
    1.20