qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC128 0/2] 128-bit arithmetic for the memory API
@ 2011-10-16 11:24 Avi Kivity
  2011-10-16 11:24 ` [Qemu-devel] [RFC128 1/2] Add support for 128-bit arithmetic Avi Kivity
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Avi Kivity @ 2011-10-16 11:24 UTC (permalink / raw)
  To: qemu-devel, David Gibson

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

-- 
1.7.6.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-17 10:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-16 11:24 [Qemu-devel] [RFC128 0/2] 128-bit arithmetic for the memory API Avi Kivity
2011-10-16 11:24 ` [Qemu-devel] [RFC128 1/2] Add support for 128-bit arithmetic Avi Kivity
2011-10-16 11:24 ` [Qemu-devel] [RFC128 2/2] memory: use 128-bit integers for sizes and intermediates Avi Kivity
2011-10-16 15:29 ` [Qemu-devel] [RFC128 3/2] Adjust system and pci address spaces to full 64-bit Avi Kivity
2011-10-17  5:33   ` David Gibson
2011-10-17 10:38     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).