On 02/26/13 10:03, Gerd Hoffmann wrote:
Can tianocore grab acpi tables from coreboot?
Not that I know of. (... It may have been a rhetorical question.)
When running on Xen, an area is searched for the RSDP, and linked tables (prepared by Xen's hvmloader I think) are installed by OVMF.
When running on qemu, static tables are used. I strived to adapt them as much as I could to qemu hardware. Some tables (recognized by header) are copied & modified dynamically before installation: MADT, SSDT.
Getting a precise picture of qemu hardware in the form of ACPI tables (over fw_cfg) would not only allow OVMF to pass on better tables to OSPM; OVMF could *maybe* use them itself. They might allow us to remove hard-wired BDFs, ports, ranges etc. in platform initialization (OvmfPkg/PlatformPei) and even in boot device selection (OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c).
Laszlo