qemu-e2k/hw/mips
Igor Mammedov bd64c210ce hw/mips/malta: turn off x86 specific features of PIIX4_PM
QEMU crashes trying to save VMSTATE when only MIPS target are compiled in
  $ qemu-system-mips -monitor stdio
  (qemu) migrate "exec:gzip -c > STATEFILE.gz"
  Segmentation fault (core dumped)

It happens due to PIIX4_PM trying to parse hotplug vmstate structures
which are valid only for x86 and not for MIPS (as it requires ACPI
tables support which is not existent for ithe later)

Issue was probably exposed by trying to cleanup/compile out unused
ACPI bits from MIPS target (but forgetting about migration bits).

Disable compiled out features using compat properties as the least
risky way to deal with issue.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/995
Reviewed-by: Ani Sinha <ani@anisinha.ca>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20220728115034.1327988-1-imammedo@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
2022-08-08 23:23:11 +02:00
..
Kconfig hw/display: Rename VGA_ISA_MM -> VGA_MMIO 2022-01-13 10:58:54 +01:00
bootloader.c hw/mips/bootloader: Fix write_ulong() 2021-12-06 11:57:31 +01:00
boston.c hw/mips: boston: pass random seed to fdt 2022-07-22 19:01:44 +02:00
cps.c clock: Add ClockEvent parameter to callbacks 2021-03-08 17:20:01 +00:00
fuloong2e.c Warn user if the vga flag is passed but no vga device is created 2022-05-09 08:21:14 +02:00
fw_cfg.c hw/mips: Implement fw_cfg_arch_key_name() 2021-01-04 23:32:27 +01:00
fw_cfg.h hw/mips: Implement fw_cfg_arch_key_name() 2021-01-04 23:32:27 +01:00
gt64xxx_pci.c Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
jazz.c pckbd: remove legacy i8042_mm_init() function 2022-07-18 19:28:46 +01:00
loongson3_bootp.c hw/mips: Add Loongson-3 boot parameter helpers 2021-01-04 23:33:38 +01:00
loongson3_bootp.h hw/mips: loongson3: Drop 'struct MemmapEntry' 2021-02-21 14:22:09 +01:00
loongson3_virt.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
malta.c hw/mips/malta: turn off x86 specific features of PIIX4_PM 2022-08-08 23:23:11 +02:00
meson.build hw/mips: Restrict non-virtualized machines to TCG 2021-05-02 16:49:35 +02:00
mips_int.c Do not include cpu.h if it's not really necessary 2021-05-02 17:24:51 +02:00
mipssim.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
trace-events hw/mips/gt64xxx: Trace accesses to ISD registers 2021-03-13 20:29:36 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00