All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] accel/tcg: Retry page_check_range() on itree.start inconsistency
@ 2026-07-06 10:57 Ilya Leoshkevich
  2026-07-06 10:57 ` [PATCH 1/1] " Ilya Leoshkevich
  0 siblings, 1 reply; 2+ messages in thread
From: Ilya Leoshkevich @ 2026-07-06 10:57 UTC (permalink / raw)
  To: Richard Henderson, Paolo Bonzini; +Cc: qemu-devel, Ilya Leoshkevich

Hi,

This is an attempt to improve the vma-pthread test situation sparked by
a bug report by wasmtime project. The patch doesn't fix all issues, but
it definitely makes things better and I think I understand what
particular thread interleaving leads to the issue (details are in the
commit message).

There is at least one other thing that I find suspicious about the
current code: page_check_range() fetches itree.last twice, and indeed,
using qatomic_read() there makes things even better, but still not
perfect, and I still cannot clearly elaborate what is the exact
interleaving with pageflags_set_clear() that causes a problem there, so
I'm not sending that one for now.

Best regards,
Ilya

Ilya Leoshkevich (1):
  accel/tcg: Retry page_check_range() on itree.start inconsistency

 accel/tcg/user-exec.c | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)

-- 
2.54.0



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

end of thread, other threads:[~2026-07-06 11:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-06 10:57 [PATCH 0/1] accel/tcg: Retry page_check_range() on itree.start inconsistency Ilya Leoshkevich
2026-07-06 10:57 ` [PATCH 1/1] " Ilya Leoshkevich

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.