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.
> 
Updated information with the three new kvm-unit-tests patches you've posted.

> 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.
> 

Ok with your latest patches, the test case runs, but fails on a few
other tests:
⟫ sudo ./x86-run x86/pmu.flat -smp 1 -cpu host | grep FAIL
FAIL: fixed-2
FAIL: all counters

>> - 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.
> 
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=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.
> 
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.
> 
> 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

With enable_apicv=0, this test case just FAILs for me.

⟫ sudo ./x86-run x86/vmx.flat -smp 1 -cpu host,+vmx | grep FAIL
FAIL: EPT violation - paging structure
FAIL: 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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to