-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qemu : add patch to fix bios linker loader assert #4204
Conversation
...ches-4.15.0/16-imammedo_x86_acpi_use_offset_instead_of_pointer_when_using_build_header.patch
Show resolved
Hide resolved
6d81cee
to
18f15b6
Compare
18f15b6
to
f6d82c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the commit message fixed, looks fine.
f6d82c4
to
a6a6d43
Compare
96e2c63
to
17c161a
Compare
* Since commit c161dfb EVE runs VMs with TPM 2.0 device enabled, and it can cause VMs to fail to boot with the below assertion, reason is that if there is not enough contiguous memory available, the ACPI table is relocated but some table offsets, including tpm table are not updated. This is not always the case and the failure shows up only if the app assigned memory is too small (triggers the relocation), for example testing Ubuntu 20.04 and 22.04 images with memory lower than 4GB triggers the issue. * This patch fixes the bios linker loader assert: "bios_linker_loader_add_checksum: Assertion `start_offset < file->blob->len' failed." * This patch is base on the following commit, This has been part of the qemu mainline since v6.1.0 release : qemu/qemu@bb9feea Signed-off-by: Shahriyar Jalayeri <[email protected]>
17c161a
to
5e510f5
Compare
Fixed typo in the commit message, added a bit more explanation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
As far as I understand, @rene has already tested it in his environment and it works) Nevertheless, we could wait for the test results... |
Since commit c161dfb EVE runs VMs with
TPM 2.0 device enabled, and it can cause VMs to fail to boot with the
below assertion, reason is that if there is not enough contiguous memory
available, the ACPI table is relocated but some table offsets, including
tpm table are not updated. This is not always the case and the failure
shows up only if the app assigned memory is too small (triggers the relocation),
for example testing Ubuntu 20.04 and 22.04 images with memory lower than
4GB triggers the issue.
This patch fixes the bios linker loader assert:
"bios_linker_loader_add_checksum: Assertion `start_offset < file->blob->len' failed."
This patch is base on the following commit, This has been part of the
qemu mainline since v6.1.0 release :
qemu/qemu@bb9feea