direct-io.hg

changeset 6490:5b239652c912

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 adsharma@los-vmm.sc.intel.com
date Tue Aug 09 11:06:44 2005 -0800 (2005-08-09)
parents e4ad3feadd4e
children 4f2364097bd4
files xen/arch/x86/vmx_vmcs.c
line diff
     1.1 --- a/xen/arch/x86/vmx_vmcs.c	Tue Aug 09 11:06:44 2005 -0800
     1.2 +++ b/xen/arch/x86/vmx_vmcs.c	Tue Aug 09 11:06:44 2005 -0800
     1.3 @@ -529,11 +529,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