Skip to content

Alternative post-instruction early TB termination

Jan Kiszka qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Introduce SSTEP_INTERNALcpu-all.h cpu-exec.c exec.c +9 more+25 -190 replies
2/3Replace CF_SINGLE_INSN with SSTEP_INTERNALexec.c+2 -412 replies
2/3Replace CF_SINGLE_INSN with SSTEP_INTERNAL - v2exec.c+6 -690 replies
3/3remove unused TB cflagsexec-all.h exec.c target-i386/translate.c+4 -130 replies
3/3remove unused TB cflags - v2exec-all.h exec.c target-i386/translate.c+2 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] Alternative post-instruction early TB termination

Originally I was hoping to get my whole debugger patch series on the track, but I'm still stuck with a bug in the x86 debug register support (weird single step race, triggered by dr-usage). So let's start smaller with a friction of that series.

These patches introduce a new single step mode that allows the emulator to generate and execute only a single-instruction TB, but without triggering a debug event afterwards. This is exploited by tb_invalidate_phys_page[_range] and later on by the watchpoint subsystem (patch to be posted). This should also allow to remove cflags from TranslationBlock, as done by the third patch.

Jan