Skip to content

meson: ensure we enable CMPXCHG128 on x86_64

Paolo Bonzini qemu-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 8 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2meson: define qemu_isa_flagsmeson.build+15 -90 replies
2/2meson: ensure -mcx16 is passed when detecting ATOMIC128meson.build+5 -40 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMichael TokarevAlex BennéeRichard Henderson
SeriesR-b
1/2R-b R-b T-b
2/2R-b R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] meson: ensure we enable CMPXCHG128 on x86_64

Alex discovered that CMPXCHG128 was not enabled when building for x86_64, resulting in slow execution for wide atomic instructions, creating a huge contention when combined with a high number of cpus (found while booting android aarch64 guest on x86_64 host).

The problem is that even though we enable -mcx16 option for x86_64, this is not used when testing for CMPXCHG128. Thus, we silently turn it off.

x86_64 is the only architecture adding machine flags for now, so the problem is limited to this host architecture. However, the problem is generic, so define a new variable for all the -m options, so that they can be used for other such tests in the future.

Based-on: <[email protected]>

v2->v3: collect *-by tags
append to qemu_isa_flags instead of prepending

Paolo Bonzini (2):
meson: define qemu_isa_flags
meson: ensure -mcx16 is passed when detecting ATOMIC128

 meson.build | 33 ++++++++++++++++++++-------------
 1 file changed, 20 insertions(+), 13 deletions(-)
Signature · 1 line
2.46.1