On Tue, Nov 17, 2026 at 8:47 AM Daniel P. Berrangé <[email protected]> wrote:
>
> On Mon, Nov 16, 2026 at 11:50:00AM -0500, John Snow wrote:
> > Signed-off-by: John Snow <[email protected]>
> > ---
> >  util/oslib-posix.c | 3 +++
> >  1 file changed, 3 insertions(+)
>
> Reviewed-by: Daniel P. Berrangé <[email protected]>
>
> >
> > diff --git a/util/oslib-posix.c b/util/oslib-posix.c
> > index dc001da66dd..454579c72df 100644
> > --- a/util/oslib-posix.c
> > +++ b/util/oslib-posix.c
> > @@ -60,6 +60,7 @@
> >
> >  #include "qemu/memalign.h"
> >  #include "qemu/mmap-alloc.h"
> > +#include "qemu/mmap-vma.h"
> >
> >  #define MAX_MEM_PREALLOC_THREAD_COUNT 32
> >
> > @@ -742,6 +743,8 @@ void *qemu_alloc_stack(size_t *sz)
> >          abort();
> >      }
> >
> > +    qemu_name_vma(ptr, *sz, "coroutine-stack");
>
> Our coroutines are crying out to be named in the future :-)

I know :)

I looked for five minutes but wasn't exactly sure how to name them. My
understanding is each coroutine stack could theoretically service
different routines, but only one at a time. I am not so clear on our
model that I felt I could confidently give them meaningful names, so I
left it as an exercise to a future reader.

(Naughty, naughty.)

Since we're in freeze and it seems unlikely we'll agree this is rc1
fodder, I'm happy to take some extra time and improve the helpers, but
some pointed suggestions would not go wrong :)

--js

>
> > +
> >      /* Stack grows down -- guard page at the bottom. */
> >      if (mprotect(ptr, pagesz, PROT_NONE) != 0) {
> >          perror("failed to set up stack guard page");
> > --
> > 2.56.1
> >
>
> With regards,
> Daniel
> --
> |: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
> |: https://libvirt.org          ~~          https://entangle-photo.org :|
> |: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|
>


Reply via email to