From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jinjian (Ken)" Subject: Re: =?UTF-8?B?562U5aSNOiBJJ20gbm93IGxvb2tpbmcgaW50byBrdm0tdW5pdC0=?= =?UTF-8?B?dGVzdHMgYW5kIGVuY291bnRlZCB3aXRoIHNvbWUgcHJvYmxlbXMu?= Date: Wed, 26 Aug 2015 19:29:41 +0800 Message-ID: <55DDA325.8050900@huawei.com> References: <55DC70BE.6030704@huawei.com> <615092B2FD0E7648B6E4B43E029BCFB85338F32F@SZXEMA503-MBS.china.huawei.com> <45045983.8807658.1440579336562.JavaMail.zimbra@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: , "Huangpeng (Peter)" , , "Gonglei (Arei)" , Zhanghailiang , , To: Levente Kurusa Return-path: Received: from szxga01-in.huawei.com ([58.251.152.64]:25536 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859AbbHZLaG (ORCPT ); Wed, 26 Aug 2015 07:30:06 -0400 In-Reply-To: <45045983.8807658.1440579336562.JavaMail.zimbra@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Thank you for your reply. On 2015/8/26 16:55, Levente Kurusa wrote: > Hello. > >> Hi all: >> I'm now looking into kvm-unit-tests and encounted with some problems. >> >> 1. when I run run_test.sh, it reported "exec: {config_fd}: not found". >> how and where to define it? > > Interesting, I don't know where this is coming from, maybe your shell? > It reported in my bash shell session, that was supplied by RHEL 7.1. >> >> 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=0xf4,iosize=0x4 -serial stdio -device pci-testdev >> -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 = 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=0xf4,iosize=0x4 -serial stdio -device pci-testdev >> -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, when we >> run emulate unittest. >> run emulate unittest,command as follows: >> qemu-kvm --enable-kvm -device pc-testdev -device >> isa-debug-exit,iobase=0xf4,iosize=0x4 -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 your reply. > > None of the commands fail for me on an x86_64 machine with QEMU 2.4.50 on Linux > 4.1.5-200.fc22.x86_64 with kvm-unit-tests git-a5d12b9 I get codes from 'https://www.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git/', build in my kvm env. OS info: RHEL 7.1 Linux version: 3.10.0 Qemu version: 2.3.0 CPU of machine: Intel(R) Xeon(R) CPU X5670 @ 2.93GHz Are these infomation adequate? I will use your configurations to run kvm-unit-tests too. > > I think a good next step would be to let us know your setup... > > Thanks, > Levente > > > . >