memory: make section size a 128-bit integer

Enterprise / Virtualization / QEMU - Paolo Bonzini [redhat.com] - 20 June 2013 09:32 UTC

So far, the size of all regions passed to listeners could fit in 64 bits, because artificial regions (containers and aliases) are eliminated by the memory core, leaving only device regions which have reasonable sizes

An IOMMU however cannot be eliminated by the memory core, and may have an artificial size, hence we may need 65 bits to represent its size.

052e87b memory: make section size a 128-bit integer
exec.c | 37 +++++++++++++++++++++----------------
hw/core/loader.c | 2 +-
hw/display/exynos4210_fimd.c | 4 ++--
hw/display/framebuffer.c | 3 ++-
hw/misc/vfio.c | 4 ++--
hw/virtio/dataplane/hostmem.c | 2 +-
hw/virtio/vhost.c | 4 ++--
hw/virtio/virtio-balloon.c | 2 +-
hw/xen/xen_pt.c | 6 +++---
include/exec/memory.h | 5 ++++-
include/qemu/int128.h | 19 +++++++++++++++++++
kvm-all.c | 23 ++++++++++++++---------
memory.c | 18 +++++++++---------
target-sparc/mmu_helper.c | 2 +-
xen-all.c | 6 +++---
15 files changed, 85 insertions(+), 52 deletions(-)

Upstream: git.qemu.org


  • Share