qemu-patch-raspberry4/include
Michael Roth a678e26cbe qapi: pad GenericList value fields to 64 bits
With the introduction of native list types, we now have types such as
int64List where the 'value' field is not a pointer, but the actual
64-bit value.

On 32-bit architectures, this can lead to situations where 'next' field
offset in GenericList does not correspond to the 'next' field in the
types that we cast to GenericList when using the visit_next_list()
interface, causing issues when we attempt to traverse linked list
structures of these types.

To fix this, pad the 'value' field of GenericList and other
schema-defined/native *List types out to 64-bits.

This is less memory-efficient for 32-bit architectures, but allows us to
continue to rely on list-handling interfaces that target GenericList to
simply visitor implementations.

In the future we can improve efficiency by defaulting to using native C
array backends to handle list of non-pointer types, which would be more
memory efficient in itself and allow us to roll back this change.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2013-05-30 09:08:38 -04:00
..
block coroutine: stop using AioContext in CoQueue 2013-05-24 16:17:56 +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 Merge remote-tracking branch 'mjt/trivial-patches' into staging 2013-05-22 08:22:36 -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 qapi: pad GenericList value fields to 64 bits 2013-05-30 09:08:38 -04:00
qemu remove some double-includes 2013-05-18 16:35:12 +04:00
qom qom: aggressively optimize qom casting 2013-05-13 15:27:18 -05:00
sysemu kvm: add kvm_readonly_mem_enabled 2013-05-29 08:15:35 -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 ui/gtk.c: Fix *BSD build of Gtk+ UI 2013-05-22 07:40:09 -05:00
trace.h build: some simplifications for "trace/Makefile.objs" 2013-01-12 18:42:51 +01:00