Skip to content

128-bit arithmetic for the memory API

Avi Kivity qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Add support for 128-bit arithmeticint128.h+116 -00 replies
2/2memory: use 128-bit integers for sizes and intermediatesmemory.c memory.h+115 -810 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] [RFC128 0/2] 128-bit arithmetic for the memory API

In order to solve the recurring overflow issues with the memory API, introduce a 128-bit integer type to hold sizes (range 0 - 2^64) and intermediates. While the patchset does reduce readability, I believe it is the only way to prevent overflows emerging in unlikely places in the code.

Avi Kivity (2):
Add support for 128-bit arithmetic
memory: use 128-bit integers for sizes and intermediates

 int128.h |  116 +++++++++++++++++++++++++++++++++++++
 memory.c |  193 ++++++++++++++++++++++++++++++++++++--------------------------
 memory.h |    3 +-
 3 files changed, 231 insertions(+), 81 deletions(-)
 create mode 100644 int128.h
Signature · 1 line
1.7.6.3