[PATCH v2 0/2] accel/tcg: fix crash on instruction straddling address-space end

Richard Henderson posted 2 patches 1 week, 2 days ago
include/exec/translator.h          |  3 ++
accel/tcg/translator.c             | 45 +++++++++++++++++++-----------
tests/tcg/i386/system/meson.build  |  4 +++
tests/tcg/i386/system/wraparound.S | 35 +++++++++++++++++++++++
4 files changed, 70 insertions(+), 17 deletions(-)
create mode 100644 tests/tcg/i386/system/wraparound.S
[PATCH v2 0/2] accel/tcg: fix crash on instruction straddling address-space end
Posted by Richard Henderson 1 week, 2 days ago
Handle address space wraparound during translation, with help from
the target translator.

Without cooperation of the target translator, unless this is a 64-bit
guest, this will no longer assert but is unlikely to function
correctly as generic code doesn't know the address space width.

Thanks to Tao Cui for a brilliant test case.


r~


Richard Henderson (1):
  accel/tcg: Allow some address space wraparound during translation

Tao Cui (1):
  tests/tcg/i386/system: Add regression test for translator_ld
    wraparound

 include/exec/translator.h          |  3 ++
 accel/tcg/translator.c             | 45 +++++++++++++++++++-----------
 tests/tcg/i386/system/meson.build  |  4 +++
 tests/tcg/i386/system/wraparound.S | 35 +++++++++++++++++++++++
 4 files changed, 70 insertions(+), 17 deletions(-)
 create mode 100644 tests/tcg/i386/system/wraparound.S

-- 
2.53.0