diff options
author | Igor Mammedov <imammedo@redhat.com> | 2021-04-14 04:43:56 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-05-04 07:27:37 -0400 |
commit | bb9feea43179ef8aba2c0a9cc1e670cb049ba90e (patch) | |
tree | cb2ad6c87277a0ac59057ded733b1bc38d998ad1 /hw/virtio | |
parent | 5d31e1e59a21bafb57842313dd41f0b0ff11a4ff (diff) |
x86: acpi: use offset instead of pointer when using build_header()
Do the same as in commit
(4d027afeb3a97 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>
Diffstat (limited to 'hw/virtio')
0 files changed, 0 insertions, 0 deletions