All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/1] linux-user/s390x: save/restore condition code state during signal handling
@ 2021-06-10 18:58 Jonathan Albrecht
  2021-06-10 18:58 ` [PATCH RFC 1/1] " Jonathan Albrecht
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Albrecht @ 2021-06-10 18:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: ruixin.bao, qemu-s390x, Jonathan Albrecht, Laurent Vivier,
	jonathan.albrecht

Peter Bao <ruixin.bao@ibm.com> and I have been looking at some issues with
qemu user mode x86_64 host/s390x guest when running go1.14+ executables.
From the qemu cpu traces, it looks like the condition code is not restored
after a signal handler is run. This affects go1.14+ because it uses signals
heavily to implement the async preempt feature in the goroutine scheduler
that was added in go1.14.

This patch tries save and restore the condition code related fields when
handling a signal. We're submitting it as an RFC since we're new to qemu and
not sure if this is s390x specific. We have some C code (s390x specific)
that reproduces the issue and can try to add it as a unit test.

Jonathan Albrecht (1):
  linux-user/s390x: save/restore condition code state during signal
    handling

 linux-user/s390x/signal.c | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

-- 
2.31.1



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

end of thread, other threads:[~2021-06-11 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 18:58 [PATCH RFC 0/1] linux-user/s390x: save/restore condition code state during signal handling Jonathan Albrecht
2021-06-10 18:58 ` [PATCH RFC 1/1] " Jonathan Albrecht
2021-06-11 15:18   ` Richard Henderson

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.