qemu/hw/isa
Paolo Bonzini 413d0ccb05 hw/isa: specify instance_size in isa_superio_type_info
Right now all subclasses of TYPE_ISA_SUPERIO have to specify an instance_size,
because the ISASuperIODevice struct adds fields to ISADevice but the type does
not include the increased instance size.  Failure to do so results in an access
past the bounds of struct ISADevice as soon as isa_superio_realize is called.
Fix this by specifying the instance_size already in the superclass.

Fixes: 4c3119a6e3 ("hw/isa/superio: Factor out the parallel code from pc87312.c")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20240213155005.109954-6-pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2024-02-15 15:53:12 +01:00
..
apm.c hw/isa: Constify VMState 2023-12-29 11:17:30 +11:00
i82378.c hw/isa: Constify VMState 2023-12-29 11:17:30 +11:00
isa-bus.c hw/isa: Realize ISA bridge device before accessing it 2023-10-19 23:13:28 +02:00
isa-superio.c hw/isa: specify instance_size in isa_superio_type_info 2024-02-15 15:53:12 +01:00
Kconfig hw/isa: fix ISA_SUPERIO dependencies 2024-02-15 15:53:12 +01:00
lpc_ich9.c hw/isa: Constify VMState 2023-12-29 11:17:30 +11:00
meson.build hw/isa/piix3: Merge hw/isa/piix4.c 2023-10-22 05:18:17 -04:00
pc87312.c hw/isa/pc87312: Consolidate the use of device_class_set_parent_realize() 2024-02-13 10:59:25 +03:00
piix.c hw/isa: Constify VMState 2023-12-29 11:17:30 +11:00
smc37c669-superio.c hw/isa: specify instance_size in isa_superio_type_info 2024-02-15 15:53:12 +01:00
trace-events hw/audio/via-ac97: Basic implementation of audio playback 2023-03-08 00:37:48 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
vt82c686.c virtio,pc,pci: features, cleanups, fixes 2024-02-14 15:45:52 +00:00