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

From: Paolo Bonzini

Date: Tue Aug 18 2026 - 07:25:43 EST


On Wed, Aug 12, 2026 at 11:32 PM Sean Christopherson <seanjc@xxxxxxxxxx> 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