Re: [PATCH v5 16/21] KVM: selftests: Add kvm_sched_getaffinity() wrapper and convert users

From: Sean Christopherson

Date: Thu Jun 04 2026 - 13:32:17 EST


On Thu, Jun 04, 2026, Josh Hilke wrote:
> Add a KVM wrapper for the sched_getaffinity syscall named
> kvm_sched_getaffinity(). Convert existing users of sched_getaffinity to
> use the new wrapper.
>
> This helper will be used in a future change in the KVM IRQ test to
> migrate vCPU threads.
>
> No functional changes intended.

There are most definitely functional changes, because not all existing callers
assert success. They obviously require success, but adding the assert *is* a
functional change.