All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Frank Mehnert <frank.mehnert@gmail.com>
Cc: qemu-devel@nongnu.org,  qemu-arm@nongnu.org,
	 peter.maydell@linaro.org,
	Frank Mehnert <frank.mehnert@kernkonzept.com>
Subject: Re: [PATCH for-11.2 v2 2/2] tests/tcg/aarch64: test WFE after a failed store-exclusive
Date: Thu, 26 Nov 2026 15:09:29 +0000	[thread overview]
Message-ID: <87qzg7tys6.fsf@draig.linaro.org> (raw)
In-Reply-To: <20261126143258.1056688-3-frank.mehnert@kernkonzept.com> (Frank Mehnert's message of "Thu, 26 Nov 2026 15:32:58 +0100")

Frank Mehnert <frank.mehnert@gmail.com> writes:

> Add a test case for the common spin lock pattern "WFE, load-exclusive,
> store-exclusive, on failure back to WFE", where the lock is released by
> a plain store and without SEV.
>
> CPU 0 executes LDAXR on the free lock, then CPU 1 takes the lock with
> a plain store. The following STXR of CPU 0 must fail, and the WFE after
> it must complete at once because the store of CPU 1 cleared the global
> monitor of CPU 0, which generates a WFE wakeup event. The virtual
> timer interrupt, 1s out, ends a WFE that misses the event, so the test
> fails instead of hanging.
>
> The test starts CPU 1 through PSCI and therefore needs two CPUs.
>
> Signed-off-by: Frank Mehnert <frank.mehnert@kernkonzept.com>

Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


      reply	other threads:[~2026-11-26 15:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87qzg7tys6.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=frank.mehnert@gmail.com \
    --cc=frank.mehnert@kernkonzept.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.