On 2/23/24 16:52, Andrea Bolognani wrote:
We use the presence of sched_setscheduler() and cpu_set_t as
witnesses for whether we can set process affinity and the
like.
This entire class of functionality is missing on Hurd, but
unfortunately it still gets advertised, so the end result is
that a number of warnings are produced during build:
sched_get_priority_max is not implemented and will always fail
sched_get_priority_min is not implemented and will always fail
sched_getaffinity is not implemented and will always fail
sched_setaffinity is not implemented and will always fail
This feels like a Hurd bug, sorry. Unless there is bug report against
Hurd (IOW, there's a chance this is fixed), I don't we should work
around it. Otherwise we'd be turning libvirt into a dumpster of workarounds.
Michal