All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] build: prefer sigaltstack over ucontext on Linux
@ 2026-04-24 16:22 elisey.konstantinov
  2026-04-24 20:02 ` Paolo Bonzini
  0 siblings, 1 reply; 21+ messages in thread
From: elisey.konstantinov @ 2026-04-24 16:22 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: qemu-devel, peter.maydell, philmd, berrange, marcandre.lureau

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

A special thanks for the patch; I’ll definitely give it a go, though I’m not sure about x86, as the bug doesn’t occur on x86This patch should work on PPC as well, shouldn’t it?

[-- Attachment #2: Type: text/html, Size: 338 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: [PATCH] build: prefer sigaltstack over ucontext on Linux
@ 2026-04-27 15:30 elisey.konstantinov
  2026-04-29 13:46 ` Daniel P. Berrangé
  0 siblings, 1 reply; 21+ messages in thread
From: elisey.konstantinov @ 2026-04-27 15:30 UTC (permalink / raw)
  To: Fabiano Rosas
  Cc: philmd, peter.maydell, marcandre.lureau, pbonzini, berrange,
	mark.cave-ayland, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 159 bytes --]

Yeah, this sounds weird, could you please test on the old distribution, like Debian 12?See three of my latest messages in the main thread for more information

[-- Attachment #2: Type: text/html, Size: 334 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: [PATCH] build: prefer sigaltstack over ucontext on Linux
@ 2026-04-27  8:12 Elisey Konstantinov
  2026-04-27  8:18 ` Elisey Konstantinov
  0 siblings, 1 reply; 21+ messages in thread
From: Elisey Konstantinov @ 2026-04-27  8:12 UTC (permalink / raw)
  To: qemu-devel
  Cc: mark.cave-ayland, qemu-devel, berrange, pbonzini,
	marcandre.lureau, peter.maydell, philmd

Oh-uh.

I’m baffled
At the time of writing this issue, it wouldn’t load on either the source code version or the Debian Mac OS X version. However, now — without any changes to the code whatsoever — it works on the source code version, but still does NOT work on the Debian version
I even tried checking out version 10.0.1, on which the bug was reproducible, but it no longer reproduces! Has someone done a rebase?

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: [PATCH] build: prefer sigaltstack over ucontext on Linux
@ 2026-04-24 15:38 elisey.konstantinov
  0 siblings, 0 replies; 21+ messages in thread
From: elisey.konstantinov @ 2026-04-24 15:38 UTC (permalink / raw)
  To: Paolo Bonzini, peter.maydell
  Cc: qemu-devel, berrange, marcandre.lureau, philmd

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

Thank you very much for your feedbackI’ve understood the leitmotif of your messages, and after giving it some thought, I’ve come to fully agree with itWell then, I’m ready to take on the task of identifying the UContext bug or how QEMU interacts with itHowever, please keep in mind that I’ll only be able to get to it in about a week’s time, and I’d also appreciate any help on GitLab :]Mind you, something tells me (which is why I mentioned that investigating the UContext issue would take some time) that the problem lies not with QEMU after all, but with UContext itself...

[-- Attachment #2: Type: text/html, Size: 834 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [PATCH] build: prefer sigaltstack over ucontext on Linux
@ 2026-04-24  8:19 Elisey Konstantinov
  2026-04-24  8:57 ` Daniel P. Berrangé
  2026-04-24 12:03 ` Paolo Bonzini
  0 siblings, 2 replies; 21+ messages in thread
From: Elisey Konstantinov @ 2026-04-24  8:19 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, marcandre.lureau, berrange, philmd

From 517099e65de1e2ad3d0f33d3c4a7a71f8728279c Mon Sep 17 00:00:00 2001
From: Elisey <elisey.konstantinov@gmail.com>
Date: Mon, 23 Mar 2026 16:02:45 +0100
Subject: [PATCH] build: prefer sigaltstack over ucontext on Linux

sigaltstack coroutine backend is more stable on some Linux
configurations, while ucontext causes boot failures for certain
PPC Mac OS X guests (issue #3276).

Select sigaltstack first when available, keeping ucontext as fallback
until the underlying issue is resolved.

Signed-off-by: Elisey Konstantinov <elisey.konstantinov@gmail.com>
---
 meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index ab3e97eb9f..742655e007 100644
--- a/meson.build
+++ b/meson.build
@@ -505,10 +505,12 @@ if host_os == 'windows'
 elif host_os == 'emscripten'
   supported_backends += ['wasm']
 else
+  # FIXME: This is a temporary workaround!
+  # SigAltStack is in higher priority to fix #3276
+  supported_backends += ['sigaltstack']
   if host_os != 'darwin' and cc.links(ucontext_probe)
     supported_backends += ['ucontext']
   endif
-  supported_backends += ['sigaltstack']
 endif
 
 if coroutine_backend == 'auto'
-- 
2.50.1 (Apple Git-155)



^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2026-04-29 13:47 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-24 16:22 [PATCH] build: prefer sigaltstack over ucontext on Linux elisey.konstantinov
2026-04-24 20:02 ` Paolo Bonzini
  -- strict thread matches above, loose matches on Subject: below --
2026-04-27 15:30 elisey.konstantinov
2026-04-29 13:46 ` Daniel P. Berrangé
2026-04-27  8:12 Elisey Konstantinov
2026-04-27  8:18 ` Elisey Konstantinov
2026-04-27  8:30   ` Elisey Konstantinov
2026-04-24 15:38 elisey.konstantinov
2026-04-24  8:19 Elisey Konstantinov
2026-04-24  8:57 ` Daniel P. Berrangé
2026-04-24  9:19   ` Elisey Konstantinov
2026-04-24  9:32     ` Daniel P. Berrangé
2026-04-24 11:31       ` Elisey Konstantinov
2026-04-24 11:51         ` Peter Maydell
2026-04-24 19:52           ` Mark Cave-Ayland
2026-04-24 22:28             ` Fabiano Rosas
2026-04-27  6:56               ` Elisey Konstantinov
2026-04-27 15:18                 ` Fabiano Rosas
2026-04-29 13:36                   ` Fabiano Rosas
2026-04-27  7:00             ` Elisey Konstantinov
2026-04-24 12:03 ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.