Re: KVM selftests are failing
From: Paolo Bonzini
Date: Fri Nov 16 2018 - 07:08:44 EST
On 16/11/18 13:00, Ahmed Soliman wrote:
> Hello once again,
>
> I noticed that there is still more problems with kvmself test (at
> least on my machine)
>
> Any test that would successfully reach the guest's code immediately
> VMexit by a shutdown.
>
> $ ./vmx_tsc_adjust_test
> ==== Test Assertion Failure ====
> x86_64/vmx_tsc_adjust_test.c:156: run->exit_reason == KVM_EXIT_IO
> pid=8499 tid=8499 - Success
> 1 0x00005604f07bd36c: ?? ??:0
> 2 0x00007f5c0dc53ae6: ?? ??:0
> 3 0x00005604f07bd4b9: ?? ??:0
> Got exit_reason other than KVM_EXIT_IO: 8 (SHUTDOWN)
>
> Also I have got a question I noticed 2 kvm test suites, kvm selftests
> in tools/testing/selftests/kvm/
> and this kvm unit test at [1] I am curious if I should put my tests in
> the kvm unit test intead of kvm selftest
If you are testing the API, or some corner cases and race conditions
that are hard to synthesize with a "real-world" guest, put it here. If
you are testing the emulated hardware, you probably want to put it in
kvm-unit-tests instead.
Paolo