> Avi Kivity wrote:
> >
> > Will talk to the specification and come up with further tests.
> >
> 
> Please printk() vmcs_readl(GUEST_RFLAGS) (where you printk kvm_rip_read()).
> 

vmx.c:
2637 static int handle_exception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
2638 {
...
2687         error_code = 0;
2688         rip = kvm_rip_read(vcpu);
2689         unsigned long debug_guest_rflags = vmcs_readl(GUEST_RFLAGS);
2690         printk(KERN_ERR "vmx->handle_exception 0a : kvm_rip_read(vcpu) 
returned 0x%lx ; vmcs_readl(GUEST_RFLAGS) returned 0x%x
2691         if (intr_info & INTR_INFO_DELIVER_CODE_MASK)
2692                 error_code = vmcs_read32(VM_EXIT_INTR_ERROR_CODE);
...

# dmesg
...
[63930.809295] returning from kvm_handle_exit, cause 3, retval = 0, exit_reason 
= 30
[63930.809313] vmx->vmx_vcpu_run() 00 : vmcs_read32(VM_ENTRY_INTR_INFO_FIELD) 
returned 0x0
[63930.809326] returning from kvm_handle_exit, cause 3, retval = 0, exit_reason 
= 30
[63930.809344] vmx->vmx_vcpu_run() 00 : vmcs_read32(VM_ENTRY_INTR_INFO_FIELD) 
returned 0x0
[63930.809358] returning from kvm_handle_exit, cause 3, retval = 0, exit_reason 
= 30
[63930.809376] vmx->vmx_vcpu_run() 00 : vmcs_read32(VM_ENTRY_INTR_INFO_FIELD) 
returned 0x0
[63930.809388] returning from kvm_handle_exit, cause 3, retval = 1, exit_reason 
= 7
[63930.809399] vmx->vmx_vcpu_run() 00 : vmcs_read32(VM_ENTRY_INTR_INFO_FIELD) 
returned 0x80000408
[63930.809412] vmx->handle_exception 00 : giving some infos
[63930.809417] vmx->handle_exception 01 : vect_info: 0x0
[63930.809423] vmx->handle_exception 02 : intr_info: 0x80000b0d, 
is_page_fault()==0
[63930.809429] vmx->handle_exception 03 : irq_chip_in_kernel()==1
[63930.809434] vmx->handle_exception 04 : is_external_interrupt()==0
[63930.809440] vmx->handle_exception 0a : kvm_rip_read(vcpu) returned 0x3154 ; 
vmcs_readl(GUEST_RFLAGS) returned 0x33202             <<<<<<<<<<<<<<<<<<<
[63930.809447] vmx->handle_exception 0f : vcpu->arch.rmode.active: 0x1
[63930.809454] vmx->handle_exception 10 : handle_rmode_exception(vcpu, 
intr_info & INTR_INFO_VECTOR_MASK, error_code) returned 0x1
[63930.809462] returning from kvm_handle_exit, cause 3, retval = 1, exit_reason 
= 0
[63930.809474] vmx->vmx_vcpu_run() 00 : vmcs_read32(VM_ENTRY_INTR_INFO_FIELD) 
returned 0x8000040d
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to