From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris J Arges Subject: Re: kvm-unit-tests failures Date: Tue, 05 Aug 2014 13:26:52 -0500 Message-ID: <53E121EC.7000205@canonical.com> References: <53DC01F8.2080800@canonical.com> <53DC86AF.7080604@redhat.com> <53DFBC9C.2090905@canonical.com> <53E0B152.50505@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: Paolo Bonzini , kvm@vger.kernel.org, Eduardo Habkost Return-path: Received: from youngberry.canonical.com ([91.189.89.112]:46543 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755780AbaHES04 (ORCPT ); Tue, 5 Aug 2014 14:26:56 -0400 In-Reply-To: <53E0B152.50505@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 08/05/2014 05:26 AM, Paolo Bonzini wrote: > Il 04/08/2014 19:02, Chris J Arges ha scritto: >> All tests below are done with the kvm tip (fresh as of today) merged >> with 3.16-rc4. >=20 Updated information with the three new kvm-unit-tests patches you've po= sted. > Sorry, I had missed the list of failures. >=20 >> * Failures: >> - pmu >> As suggested in comment 2 on this bug: >> https://bugzilla.redhat.com/show_bug.cgi?id=3D1079796 >> Adding the -cpu host allows this test to PASS. >=20 > Correct, I thought unittests.cfg already did that. >=20 Ok with your latest patches, the test case runs, but fails on a few other tests: =E2=9F=AB sudo ./x86-run x86/pmu.flat -smp 1 -cpu host | grep FAIL =46AIL: fixed-2 =46AIL: all counters >> - tsc_adjust >> Here again adding "-cpu host" allows this to pass. >=20 > Looks like QEMU doesn't know the tsc_adjust flag at all. CCing Eduar= do. >=20 >> - pcid >> Here again adding "-cpu host" allows this to pass. >=20 > It passes here, and fails with "-cpu host": >=20 > PASS: CPUID consistency > FAIL: Test on PCID when enabled > PASS: Test on INVPCID when disabled >=20 > Looks like the "Test on PCID when enabled" has problems, and the > -cpu flag is a red herring. >=20 This test now passes. >> - msr (HANG) >> ./x86-run x86/msr.flat -smp 1 >> >> $ sudo ./x86-run x86/msr.flat -smp 1qemu-system-x86_64 -enable-kvm >> -device pc-testdev -device isa-debug-exit,iobase=3D0xf4,iosize=3D0x4 >> -display none -serial stdio -device pci-testdev -kernel x86/msr.flat= -smp 1 >> enabling apic >> enabling apic >> enabling apic >> >> "enabling apic" repeats and adding -cpu host seems to have no effect= =2E >> Interestingly enough on an Ubuntu 3.13 series kernel this PASSes. >=20 > The APICBASE register is already tested by the apic testcase, and the > simple-minded tests in msr.flat actually trigger a general protection > fault nowadays because the quality of the emulation improved. I'm > dropping the APICBASE tests from msr.flat. >=20 This test now passes. >> - vmx (HANG) >> Test suite: interrupt >> PASS: direct interrupt while running guest >> PASS: intercepted interrupt while running guest >> PASS: direct interrupt + hlt >> >> Here it just hangs. >=20 > It fails here for me. It could be related to APICv, can you try with > the enable_apic=3D0 parameter to kvm-intel.ko? >=20 > Paolo With enable_apicv=3D0, this test case just FAILs for me. =E2=9F=AB sudo ./x86-run x86/vmx.flat -smp 1 -cpu host,+vmx | grep FAIL =46AIL: EPT violation - paging structure =46AIL: intercepted interrupt + hlt I'll try to dig a bit more, but things are looking much better! Thanks for the help and patches. --chris j arges