On Mon, Jan 29, 2024 at 8:54 PM Daniel P. Berrangé <berra...@redhat.com> wrote: > Looking again, the TID is never used after being checked. QEMU sends > the TID, but the helper never does anything with this information > except to check the TID belongs the PID. Why are we sending the TID ?
Doh! sched_getaffinity's first argument should be the tid. (As an aside, sched_getaffinity does not need CAP_SYS_NICE to read the affinity of another user's thread). Paolo