From: Avi Kivity <avi@redhat.com>
To: qemu-devel@nongnu.org, David Gibson <david@gibson.dropbear.id.au>
Subject: [Qemu-devel] [RFC128 0/2] 128-bit arithmetic for the memory API
Date: Sun, 16 Oct 2011 13:24:22 +0200 [thread overview]
Message-ID: <1318764264-22745-1-git-send-email-avi@redhat.com> (raw)
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
next reply other threads:[~2011-10-16 11:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-16 11:24 Avi Kivity [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1318764264-22745-1-git-send-email-avi@redhat.com \
--to=avi@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).