All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-11.2 v2 0/2] target/arm: WFE wakeup after a failed store-exclusive
@ 2026-11-26 14:32 Frank Mehnert
  2026-11-26 14:32 ` [PATCH for-11.2 v2 1/2] target/arm: set the event register on " Frank Mehnert
  2026-11-26 14:32 ` [PATCH for-11.2 v2 2/2] tests/tcg/aarch64: test WFE after " Frank Mehnert
  0 siblings, 2 replies; 11+ messages in thread
From: Frank Mehnert @ 2026-11-26 14:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-arm, peter.maydell, alex.bennee, Frank Mehnert

A failing store-exclusive means that the global monitor of the PE was
cleared, which generates a WFE wakeup event. QEMU does not set the
event register in this case, so a vCPU spinning in the lock pattern
"WFE, load-exclusive, store-exclusive, on failure back to WFE" can sleep
in WFE forever although the lock is free.

Patch 1 sets the event register on a failed store-exclusive. Patch 2
adds a test case for this lock pattern to the WFxT test.

Changes since v1:
- Add the test case (patch 2).
- Add the Reviewed-by of Alex Bennée to patch 1.

Frank Mehnert (2):
  target/arm: set the event register on a failed store-exclusive
  tests/tcg/aarch64: test WFE after a failed store-exclusive

 target/arm/tcg/translate-a64.c       |   7 +-
 target/arm/tcg/translate.c           |   7 +-
 tests/tcg/aarch64/system/meson.build |   2 +-
 tests/tcg/aarch64/system/wfxt.c      | 103 ++++++++++++++++++++++++++-
 4 files changed, 115 insertions(+), 4 deletions(-)

-- 
2.55.0



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

end of thread, other threads:[~2026-11-30 16:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 14:32 [PATCH for-11.2 v2 0/2] target/arm: WFE wakeup after a failed store-exclusive Frank Mehnert
2026-11-26 14:32 ` [PATCH for-11.2 v2 1/2] target/arm: set the event register on " Frank Mehnert
2026-11-30 10:10   ` Peter Maydell
2026-11-30 13:56     ` Alex Bennée
2026-11-30 15:00       ` Peter Maydell
2026-11-30 15:53         ` Alex Bennée
2026-11-30 16:23           ` Peter Maydell
2026-11-30 16:35             ` Frank Mehnert
2026-11-30 16:53               ` Peter Maydell
2026-11-26 14:32 ` [PATCH for-11.2 v2 2/2] tests/tcg/aarch64: test WFE after " Frank Mehnert
2026-11-26 15:09   ` Alex Bennée

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.