qemu-e2k/hw/acpi
Igor Mammedov bb9feea431 x86: acpi: use offset instead of pointer when using build_header()
Do the same as in commit
 (4d027afeb3 Virt: ACPI: fix qemu assert due to re-assigned table data address)
for remaining tables that happen to use saved at
the beginning pointer to build header to avoid assert
when table_data is relocated due to implicit re-size.

In this case user is trying to start Windows 10 and getting assert at
 hw/acpi/bios-linker-loader.c:239:
  bios_linker_loader_add_checksum: Assertion `start_offset < file->blob->len' failed.

Fixes: https://bugs.launchpad.net/bugs/1923497
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20210414084356.3792113-1-imammedo@redhat.com>
Cc: mst@redhat.com, qemu-stable@nongnu.org
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2021-05-04 07:27:37 -04:00
..
acpi_interface.c
acpi-stub.c
acpi-x86-stub.c
aml-build-stub.c acpi: add aml builder stubs 2020-10-21 11:36:19 +02:00
aml-build.c x86: acpi: use offset instead of pointer when using build_header() 2021-05-04 07:27:37 -04:00
bios-linker-loader.c
core.c acpi/core: always set SCI_EN when SMM isn't supported 2021-02-23 10:58:42 -05:00
cpu_hotplug.c
cpu.c qapi: Use QAPI_LIST_APPEND in trivial cases 2021-01-28 08:08:45 +01:00
generic_event_device.c ACPI: Avoid infinite recursion when dump-vmstate 2020-11-12 14:13:59 +00:00
ghes.c acpi: Permit OEM ID and OEM table ID fields to be changed 2021-02-05 08:52:59 -05:00
hmat.c acpi: Permit OEM ID and OEM table ID fields to be changed 2021-02-05 08:52:59 -05:00
hmat.h acpi: Permit OEM ID and OEM table ID fields to be changed 2021-02-05 08:52:59 -05:00
ich9.c acpi/core: always set SCI_EN when SMM isn't supported 2021-02-23 10:58:42 -05:00
ipmi-stub.c
ipmi.c
Kconfig
memory_hotplug.c qapi: Use QAPI_LIST_APPEND in trivial cases 2021-01-28 08:08:45 +01:00
meson.build meson: convert hw/acpi 2020-08-21 06:30:32 -04:00
nvdimm.c acpi: Permit OEM ID and OEM table ID fields to be changed 2021-02-05 08:52:59 -05:00
pci.c pci: introduce acpi-index property for PCI device 2021-03-22 18:58:19 -04:00
pcihp.c pci: acpi: ensure that acpi-index is unique 2021-03-22 18:58:19 -04:00
piix4.c acpi/piix4: reinitialize acpi PM device on reset 2021-04-01 12:19:52 -04:00
tco.c hw/acpi/tco: Remove unused definitions 2020-09-09 15:26:41 +02:00
tpm.c
trace-events pci: introduce acpi-index property for PCI device 2021-03-22 18:58:19 -04:00
trace.h
utils.c acpi: Set proper maximum size for "etc/acpi/rsdp" blob 2021-03-22 18:58:19 -04:00
vmgenid.c acpi: Permit OEM ID and OEM table ID fields to be changed 2021-02-05 08:52:59 -05:00