qemu/include
Avi Kivity 86a8623692 memory: limit sections in the radix tree to the actual address space size
The radix tree is statically sized to fit TARGET_PHYS_ADDR_SPACE_BITS.
If a larger memory region is registered, it will overflow.

Fix by limiting any section in the radix tree to the supported size.

This problem was not observed earlier since 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.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Avi Kivity <avi.kivity@gmail.com>
[ Fail the build if TARGET_PHYS_ADDR_SPACE_BITS is too large - Paolo ]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2013-05-24 18:43:35 +02:00
..
block nbd: support large NBD requests 2013-05-03 13:05:49 +02:00
disas Add moxie disassembler 2013-03-23 14:25:41 +00:00
exec memory: limit sections in the radix tree to the actual address space size 2013-05-24 18:43:35 +02:00
fpu softfloat: Implement uint64_to_float128 2013-01-05 10:12:50 +00:00
hw virtio-net: add virtio_net_set_netclient_name. 2013-05-15 08:48:25 -05:00
migration savevm: Implement block_writev_buffer() 2013-04-15 08:26:18 +02:00
monitor add a new qevent: QEVENT_GUEST_PANICKED 2013-04-30 10:30:01 -05:00
net hw: move headers to include/ 2013-04-08 18:13:10 +02:00
qapi qstring: add qstring_get_length() 2013-04-05 08:42:29 -04:00
qemu osdep: introduce qemu_anon_ram_free to free qemu_anon_ram_alloc-ed memory 2013-05-14 08:53:31 -05:00
qom qom: aggressively optimize qom casting 2013-05-13 15:27:18 -05:00
sysemu osdep, kvm: rename low-level RAM allocation functions 2013-05-14 08:53:31 -05:00
ui console: zap ds arg from register_displaychangelistener 2013-04-25 14:45:46 -05:00
config.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
elf.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
glib-compat.h glib: add a compatibility interface for g_timeout_add_seconds 2013-03-25 13:10:40 -05:00
libfdt_env.h fdt: Use bswapN instead of bswap_N 2013-01-12 12:22:58 +00:00
qemu-common.h Rename hexdump to avoid FreeBSD libutil conflict 2013-05-20 08:20:08 -05:00
trace.h build: some simplifications for "trace/Makefile.objs" 2013-01-12 18:42:51 +01:00