Re: [KVM] feb627e8d6: kernel-selftests.kvm.vmx_pmu_msrs_test.fail

From: Vitaly Kuznetsov
Date: Wed Dec 15 2021 - 10:59:06 EST


kernel test robot <oliver.sang@xxxxxxxxx> writes:

> Greeting,
>
> FYI, we noticed the following commit (built with gcc-9):
>
> commit: feb627e8d6f69c9a319fe279710959efb3eba873 ("KVM: x86: Forbid KVM_SET_CPUID{,2} after KVM_RUN")
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
>

...

>
> # selftests: kvm: vmx_pmu_msrs_test
> # ==== Test Assertion Failure ====
> # lib/x86_64/processor.c:874: rc == 0
> # pid=10415 tid=10415 errno=22 - Invalid argument
> # 1 0x000000000040b24f: vcpu_set_cpuid at processor.c:873
> # 2 0x000000000040260a: main at vmx_pmu_msrs_test.c:115
> # 3 0x00007f07e1aec09a: ?? ??:0
> # 4 0x0000000000402759: _start at ??:?
> # KVM_SET_CPUID2 failed, rc: -1 errno: 22
> not ok 33 selftests: kvm: vmx_pmu_msrs_test # exit=254
>

Hm, I'm pretty sure I've tested feb627e8d6f6 on both Intel and AMD and I
don't remember seeing this failure :-( . vmx_pmu_msrs_test test does
KVM_SET_CPUID after KVM_RUN and thus needs to be fixed too. Will send a
patch shortly.

--
Vitaly