Re: [GIT PULL] KVM: x86: KVM: Selftests change for 7.3, part 2

Paolo Bonzini <[email protected]>
Newsgroups org.kernel.vger.kvm,org.kernel.vger.linux-kernel
Message-ID <CABgObfawY=G8_p_rMyCaVONAKMqce_HQJWRSeBUi=x=KV6mM9A@mail.gmail.com>
On Wed, Aug 12, 2026 at 11:32 PM Sean Christopherson <[email protected]> wrote:
>
> Selftests, part 2.  This was originally just the irq_test from David and Josh,
> but I piled on fixes for hardware_disable_test and pmu_counters_test that rely
> on the pRNG changes/enhancements.
>
> There have been a few hiccups with linking to the VFIO selfest library, but I
> think they're all sorted out.  I.e. this should Just Work on your end.
>
> As mentioned in the cover letter, this will conflict with part 1.  Part 2 just
> adds syscall wrappers, i.e. keep the functional test changes from part 1, but
> use the newfangled wrappers from part 2.
>
> diff --cc tools/testing/selftests/kvm/steal_time.c
> index 92e7ffcd68b7,83a1e3aa15cf..6e9cc0e34ec0
> --- tools/testing/selftests/kvm/steal_time.c
> +++ tools/testing/selftests/kvm/steal_time.c
> @@@ -553,11 -553,7 +548,11 @@@ int main(int ac, char **av
>
>                 /* Steal time from the VCPU. The steal time thread has the same CPU affinity as the VCPUs. */
>                 run_delay = get_run_delay();
> -               pthread_create(&thread, NULL, do_steal_time, NULL);
> -               pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);
>  -              kvm_pthread_create(&thread, &attr, do_steal_time, NULL);
> ++              kvm_pthread_create(&thread, NULL, do_steal_time, NULL);
> ++              kvm_pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);

kvm_pthread_getaffinity(thread, &cpuset);

I suppose.  Fixed and pulled, thanks.

Paolo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.