[PATCH 0/2] accel/tcg: Fix race condition in tb create/invalidate

Richard Henderson posted 2 patches 2 years, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230706170537.95959-1-richard.henderson@linaro.org
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>
There is a newer version of this series
accel/tcg/internal.h      |  30 ++++-
accel/tcg/cpu-exec.c      |  47 ++++----
accel/tcg/tb-maint.c      | 242 ++++++++++++++++++++------------------
accel/tcg/translate-all.c |  43 ++++++-
accel/tcg/translator.c    |  34 ++++--
5 files changed, 239 insertions(+), 157 deletions(-)
[PATCH 0/2] accel/tcg: Fix race condition in tb create/invalidate
Posted by Richard Henderson 2 years, 5 months ago
Thanks for the test case, Richard WMJ.  Using the fedora rawhide
kernel-core-6.5.0-0.rc0.20230703gita901a3568fd2.8.fc39.x86_64.rpm
I was able to reproduce the problem within 30 iterations.

I'm now at 650 iterations and counting.


r~


Richard Henderson (2):
  accel/tcg: Split out cpu_exec_longjmp_cleanup
  accel/tcg: Always lock pages before translation

 accel/tcg/internal.h      |  30 ++++-
 accel/tcg/cpu-exec.c      |  47 ++++----
 accel/tcg/tb-maint.c      | 242 ++++++++++++++++++++------------------
 accel/tcg/translate-all.c |  43 ++++++-
 accel/tcg/translator.c    |  34 ++++--
 5 files changed, 239 insertions(+), 157 deletions(-)

-- 
2.34.1