[PATCH v6 0/2] accel/tcg: cut per-block dispatch overhead (part 7)

Richard Henderson posted 2 patches 1 week, 1 day ago
include/gdbstub/user.h                  |  11 +
accel/tcg/translator.c                  |  33 ++-
gdbstub/user.c                          |  14 +
tests/tcg/multiarch/test-xpage-chain.c  | 336 ++++++++++++++++++++++++
tests/guest-debug/run-test.py           |   3 +
tests/tcg/multiarch/gdbstub/xpage-bp.py |  37 +++
tests/tcg/multiarch/meson.build         |   6 +
7 files changed, 439 insertions(+), 1 deletion(-)
create mode 100644 tests/tcg/multiarch/test-xpage-chain.c
create mode 100644 tests/tcg/multiarch/gdbstub/xpage-bp.py
[PATCH v6 0/2] accel/tcg: cut per-block dispatch overhead (part 7)
Posted by Richard Henderson 1 week, 1 day ago
Splitting Matt's larger patch set:

> 7  RFC: accel/tcg: allow cross-page goto_tb chaining in user-only builds
>
>    translator_use_goto_tb() refuses to chain across a page. In user-only
>    builds the invalidation path already covers what that was protecting
>    against: every mmap/mprotect/munmap reaches page_set_flags(), which
>    invalidates and unlinks. Lift it there for runs that can never acquire
>    a breakpoint, keep it for system mode.             -2.75%, -4.84% wall

Changes in v6:
  - Adapt the test to the tcg/tests meson conversion, which requires...
  - Add a mechanism to pass command-line arguments to the guest program.


r~


Matt Turner (1):
  accel/tcg: Allow cross-page goto_tb chaining in user-only builds

Richard Henderson (1):
  tests/guest-debug/run-test: Add --pargs

 include/gdbstub/user.h                  |  11 +
 accel/tcg/translator.c                  |  33 ++-
 gdbstub/user.c                          |  14 +
 tests/tcg/multiarch/test-xpage-chain.c  | 336 ++++++++++++++++++++++++
 tests/guest-debug/run-test.py           |   3 +
 tests/tcg/multiarch/gdbstub/xpage-bp.py |  37 +++
 tests/tcg/multiarch/meson.build         |   6 +
 7 files changed, 439 insertions(+), 1 deletion(-)
 create mode 100644 tests/tcg/multiarch/test-xpage-chain.c
 create mode 100644 tests/tcg/multiarch/gdbstub/xpage-bp.py

-- 
2.53.0