Skip to content

tcg: allocate TB structs preceding translate

Emilio G. Cota qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v23 patches 14 repliesSuperseded
  3. v11 patch 1 replySuperseded

Changes in v3 from the cover letter

- Dropped the configure-time check. Instead, do this at init-time as suggested by Richard.

- Added Pranith's R-b tag to the TCG patch.

- Added cache info query for Windows thanks to Geerd's help.

- Added cache info query for MacOS [ #ifdef __APPLE__ ] via sysctl. (Note:
I only tested the code on a standalone program, since I cannot install QEMU's dependences on the MacOS machine I got access to)

- Use int instead of unsigned int for the line sizes. This allows us to use ROUND_UP without having to cast to int (ROUND_UP negates the alignment parameter)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2util: add cacheinfoinclude/qemu/osdep.h util/Makefile.objs util/cacheinfo.c+162 -00 replies
1/2util: add cacheinfoinclude/qemu/osdep.h util/Makefile.objs util/cacheinfo.c+162 -01 reply
2/2tcg: allocate TB structs before the corresponding translated codeinclude/exec/tb-context.h tcg/tcg.c tcg/tcg.h +1 more+46 -170 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchGeert Martin IjewskiPranith Kumar
1/2T-b T-b R-b
1/2T-b T-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/2] tcg: allocate TB structs preceding translate

v2: https://lists.gnu.org/archive/html/qemu-devel/2017-06/msg01147.html

Changes from v2:

- Dropped the configure-time check. Instead, do this at init-time as suggested by Richard.

- Added Pranith's R-b tag to the TCG patch.

- Added cache info query for Windows thanks to Geerd's help.

- Added cache info query for MacOS [ #ifdef __APPLE__ ] via sysctl. (Note:
I only tested the code on a standalone program, since I cannot install QEMU's dependences on the MacOS machine I got access to)

- Use int instead of unsigned int for the line sizes. This allows us to use ROUND_UP without having to cast to int (ROUND_UP negates the alignment parameter)

Question: is it worth adding a paranoid check to make sure the linesizes we obtain are a pow2? If there's a bug somewhere in the reporting, we'll get in trouble due to ROUND_UP, which only works with pow2 parameters. A safer alternative is to use QEMU_ALIGN_UP, but it's slower.

This patchset applies cleanly on top of the current master (65dfad62a).

Thanks,

Emilio