x86: emulation: Support BLOBLIST_TABLES properly
authorSimon Glass <sjg@chromium.org>
Sat, 15 Mar 2025 14:25:55 +0000 (14:25 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Apr 2025 17:41:55 +0000 (11:41 -0600)
commit15ca25e31ed5deb8cc055a19b660b306a9243f58
tree63257fa8457686e2b13e6bab7c39f90c3f299b45
parentb03021f56ab0f47075c9a8dbf05e6749fd5ffd85
x86: emulation: Support BLOBLIST_TABLES properly

The existing QEMU implementation mostly ignored BLOBLIST_TABLES and
allocates the bulk of the tables with malloc(). Update it to place all
tables in the bloblist. Since QEMU declares a size of 128KB regardless
of the size of its tables, this requires a larger bloblist.

Fix up the e820 table to handle this, keeping the old code as an option
for now, to assist with any future bug-fixing.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/qemu/e820.c
arch/x86/lib/tables.c
configs/qemu-x86_64_defconfig
configs/qemu-x86_defconfig
drivers/misc/qfw_acpi.c