qemu-e2k/tests
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
..
libqos libqos/pci: Enable bus mastering 2013-05-08 15:28:49 +02:00
qemu-iotests tests: set MALLOC_PERTURB_ to expose memory bugs 2013-05-29 08:16:06 -05:00
tcg Merge remote-tracking branch 'mjt/trivial-patches' into staging 2013-05-22 08:22:36 -05:00
.gitignore
check-block.sh
check-qdict.c
check-qfloat.c
check-qint.c
check-qjson.c
check-qlist.c
check-qstring.c
fdc-test.c
fw_cfg-test.c fw_cfg: add qtest test case 2013-04-17 10:27:47 -05:00
hd-geo-test.c
i440fx-test.c i440fx-test: add test for PAM functionality 2013-04-17 10:27:47 -05:00
ide-test.c ide-test: Fix endianness problems 2013-05-15 10:31:15 -05:00
libqtest.c libqtest: only call fclose() on open files 2013-04-30 16:04:14 -05:00
libqtest.h
m48t59-test.c
Makefile tests: set MALLOC_PERTURB_ to expose memory bugs 2013-05-29 08:16:06 -05:00
qemu-iotests-quick.sh
rtc-test.c
test-aio.c
test-coroutine.c
test-cutils.c
test-hbitmap.c
test-iov.c
test-mul64.c
test-qmp-commands.c
test-qmp-input-strict.c
test-qmp-input-visitor.c qapi: add native list coverage for QMP input visitor tests 2013-05-23 09:44:21 -04:00
test-qmp-output-visitor.c qapi: pad GenericList value fields to 64 bits 2013-05-30 09:08:38 -04:00
test-string-input-visitor.c
test-string-output-visitor.c
test-thread-pool.c
test-visitor-serialization.c qapi: add native list coverage for visitor serialization tests 2013-05-23 09:44:21 -04:00
test-x86-cpuid.c
test-xbzrle.c
tmp105-test.c libqos: Relocate I2C files 2013-05-03 12:03:14 -05:00