From: Andreas Tanz Subject: Re: KVM on Via Nano (Isaiah) CPUs? Date: Wed, 25 Mar 2009 10:45:04 +0100 Message-ID: <200903251045.04600.andreas.tanz@kvt.de> References: <200903180902.29139.andreas.tanz@kvt.de> <49C7D7BE.8040807@redhat.com> <49C7F2E0.3020607@redhat.com> Reply-To: andreas.tanz@kvt.de Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mail.kvt.de ([62.154.132.4]:2454 "EHLO mail.kvt.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753827AbZCYJoY (ORCPT ); Wed, 25 Mar 2009 05:44:24 -0400 In-Reply-To: <49C7F2E0.3020607@redhat.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: > 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