From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: kvm-unit-tests failures Date: Tue, 05 Aug 2014 12:26:26 +0200 Message-ID: <53E0B152.50505@redhat.com> References: <53DC01F8.2080800@canonical.com> <53DC86AF.7080604@redhat.com> <53DFBC9C.2090905@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit To: Chris J Arges , kvm@vger.kernel.org, Eduardo Habkost Return-path: Received: from mail-we0-f177.google.com ([74.125.82.177]:63320 "EHLO mail-we0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752923AbaHEK0e (ORCPT ); Tue, 5 Aug 2014 06:26:34 -0400 Received: by mail-we0-f177.google.com with SMTP id w62so770348wes.36 for ; Tue, 05 Aug 2014 03:26:33 -0700 (PDT) In-Reply-To: <53DFBC9C.2090905@canonical.com> Sender: kvm-owner@vger.kernel.org List-ID: 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. Sorry, I had missed the list of failures. > * Failures: > - pmu > As suggested in comment 2 on this bug: > https://bugzilla.redhat.com/show_bug.cgi?id=1079796 > Adding the -cpu host allows this test to PASS. Correct, I thought unittests.cfg already did that. > - tsc_adjust > Here again adding "-cpu host" allows this to pass. Looks like QEMU doesn't know the tsc_adjust flag at all. CCing Eduardo. > - pcid > Here again adding "-cpu host" allows this to pass. It passes here, and fails with "-cpu host": PASS: CPUID consistency FAIL: Test on PCID when enabled PASS: Test on INVPCID when disabled Looks like the "Test on PCID when enabled" has problems, and the -cpu flag is a red herring. > - 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=0xf4,iosize=0x4 > -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. > Interestingly enough on an Ubuntu 3.13 series kernel this PASSes. 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. > - 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. It fails here for me. It could be related to APICv, can you try with the enable_apic=0 parameter to kvm-intel.ko? Paolo