From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jinjian (Ken)" Subject: Re: I'm now looking into kvm-unit-tests and encounted with some problems. Date: Wed, 26 Aug 2015 09:25:00 +0800 Message-ID: <55DD156C.5060401@huawei.com> References: <55DC70BE.6030704@huawei.com> <615092B2FD0E7648B6E4B43E029BCFB85338F32F@SZXEMA503-MBS.china.huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "Gonglei (Arei)" , Zhanghailiang , "kvm@vger.kernel.org" , To: "Huangpeng (Peter)" , "drjones@redhat.com" , "pbonzini@redhat.com" Return-path: Received: from szxga02-in.huawei.com ([119.145.14.65]:30034 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859AbbHZBZY (ORCPT ); Tue, 25 Aug 2015 21:25:24 -0400 In-Reply-To: <615092B2FD0E7648B6E4B43E029BCFB85338F32F@SZXEMA503-MBS.china.huawei.com> Sender: kvm-owner@vger.kernel.org List-ID: To Peter, Thank you very much! I'm sorry this is my first kvm mail, and have no experience. On 2015/8/26 8:40, Huangpeng (Peter) wrote: > You should add kvm maillinglist too. > > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA: Jinjian (Ken) > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2015=E5=B9=B48=E6=9C=8825=E6=97= =A5 21:42 > =E6=94=B6=E4=BB=B6=E4=BA=BA: drjones@redhat.com; pbonzini@redhat.com > =E6=8A=84=E9=80=81: Huangpeng (Peter); Gonglei (Arei); Zhanghailiang > =E4=B8=BB=E9=A2=98: I'm now looking into kvm-unit-tests and encounted= with some problems. > > Hi all: > I'm now looking into kvm-unit-tests and encounted with some prob= lems. > > 1. when I run run_test.sh, it reported "exec: {config_fd}: not found"= =2E > how and where to define it? > > 2. all tests run with -smp 2(or 3) hang. > for example, run apic unittest, command as follows: > qemu-kvm --enable-kvm -device pc-testdev -device > isa-debug-exit,iobase=3D0xf4,iosize=3D0x4 -serial stdio -device pci-t= estdev -kernel x86/apic.flat -smp 2 -vnc none > result: enter into an endless loop > the related codes are: > x86/apic.c > test_sti_nmi() > on_cpu_async(1, sti_loop, 0); > > static void sti_loop(void *ignore) > { > unsigned k =3D 0; > > while (sti_loop_active) { > sti_nop((char *)(ulong)((k++ * 4096) % (128 * 1024 * 1024)))= ; > } > } > > 3. s3 kvm-unit-test hang > run s3 unittest, command as follows: > qemu-kvm --enable-kvm -device pc-testdev -device > isa-debug-exit,iobase=3D0xf4,iosize=3D0x4 -serial stdio -device pci-t= estdev -kernel x86/s3.flat -vnc none > s3 hang at resume event > logs: > RSDP is at f62c0 > RSDT is at 7fe16a9 > FADT is at 7fe0bda > FACS is at 7fe0000 > resume vector addr is 7fe000c > copy resume code from 400350 > > 4.qemu exit and fail even after the problematic code is commented, wh= en we run emulate unittest. > run emulate unittest,command as follows: > qemu-kvm --enable-kvm -device pc-testdev -device > isa-debug-exit,iobase=3D0xf4,iosize=3D0x4 -serial stdio -device pci-= testdev -kernel x86/emulator.flat -vnc none > result: qemu exit when do test_muldiv > logs: > PASS: imul rax, mem, imm > unhandled cpu excecption 8 > > If The code which cause qemu exit is commented, the test also fail > logs: > FAIL: mov null, %ss > > Question: > What's the cause of the problem at your view? looking forward for you= r reply. > > Thank you in advance. > > >