
On Mon, Feb 26, 2024 at 11:25:12AM +0100, Michal Prívozník wrote:
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.
I've figured out a more sane approach, which also comes with free bug fixes as a bonus :) https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/MZZWE... -- Andrea Bolognani / Red Hat / Virtualization