qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] sched_attr: Do not define for glibc >= 2.41


From: Peter Maydell
Subject: Re: [PATCH v2] sched_attr: Do not define for glibc >= 2.41
Date: Tue, 4 Feb 2025 17:18:49 +0000

On Fri, 6 Dec 2024 at 16:16, Daniel P. Berrangé <berrange@redhat.com> wrote:
>
> ping: this patch hasn't been merged for 9.2.0 afaict, so I
> presume we're broken with latest glibc...

Whoops, yes, we dropped the ball on this one (and now the new
glibc is in Arch Linux, and a user has reported the breakage:
https://gitlab.com/qemu-project/qemu/-/issues/2799 ).

I've picked up the patch since I'm doing a target-arm pullreq
this week anyway (and added a cc:stable so we can get it into
the stable branches).

> On Fri, Oct 11, 2024 at 12:31:40PM -0700, Khem Raj wrote:
> > glibc 2.41+ has added [1] definitions for sched_setattr and sched_getattr 
> > functions
> > and struct sched_attr. Therefore, it needs to be checked for here as well 
> > before
> > defining sched_attr
> >
> > Define sched_attr conditionally on SCHED_ATTR_SIZE_VER0
> >
> > Fixes builds with glibc/trunk
> >
> > [1] 
> > https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=21571ca0d70302909cf72707b2a7736cf12190a0;hp=298bc488fdc047da37482f4003023cb9adef78f8
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > Cc: Laurent Vivier <laurent@vivier.eu>
> > Cc: Paolo Bonzini <pbonzini@redhat.com>
> > ---
> > v2: Use SCHED_ATTR_SIZE_VER0 instead of glibc version check

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]