<div dir="ltr">With ACPI moved out of SeaBIOS to QEMU, how will ACPI work when using SeaBIOS without QEMU?<br><br>Like if using SeaBIOS with Boch, KVM or Coreboot?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Apr 25, 2013 at 11:02 AM, Michael S. Tsirkin <span dir="ltr"><<a href="mailto:mst@redhat.com" target="_blank">mst@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Untested yet, but I thought I'd share the<br>
BIOS bits so we can agree on direction.<br>
<br>
In particular check out ROM sizes:<br>
- Before patchset with DSDT enabled<br>
    Total size: 127880  Fixed: 59060  Free: 3192 (used 97.6% of 128KiB rom)<br>
- Before patchset with DSDT disabled<br>
    Total size: 122844  Fixed: 58884  Free: 8228 (used 93.7% of 128KiB rom)<br>
- After patchset:<br>
    Total size: 128776  Fixed: 59100  Free: 2296 (used 98.2% of 128KiB rom)<br>
- Legacy disabled at build time:<br>
    Total size: 119836  Fixed: 58996  Free: 11236 (used 91.4% of 128KiB rom)<br>
<br>
As can be seen from this, most size savings come<br>
from dropping DSDT, but we do save a bit by removing<br>
other tables. Of course the real reason to move tables to QEMU<br>
is so that ACPI can better match hardware.<br>
<br>
This patchset adds an option to move all code for formatting acpi tables<br>
out of BIOS. With this, QEMU has full control over the table layout.<br>
All tables are loaded from the new "/etc/acpi/" directory.<br>
Any entries in this directory cause BIOS to disable<br>
ACPI table generation completely.<br>
A generic linker script, controlled by QEMU, is<br>
loaded from "/etc/linker-script". It is used to<br>
patch in table pointers and checksums.<br>
<br>
BIOS still has limited ability to parse the tables,<br>
for the following purposes:<br>
        - locate resume vector<br>
        - allocate RSDP in FSEG<br>
        - allocate FACS at an aligned address<br>
<br>
--<br>
MST<br>
<br>
<br>
Michael S. Tsirkin (3):<br>
  linker: utility to patch in-memory ROM files<br>
  acpi: load and link tables from /etc/acpi/<br>
  acpi: add an option to disable builtin tables<br>
<br>
 Makefile     |  2 +-<br>
 src/Kconfig  | 12 +++++++-<br>
 src/acpi.c   | 67 +++++++++++++++++++++++++++++++++++++++++++-<br>
 src/linker.c | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
 src/linker.h | 50 +++++++++++++++++++++++++++++++++<br>
 src/util.h   |  1 +<br>
 6 files changed, 219 insertions(+), 3 deletions(-)<br>
 create mode 100644 src/linker.c<br>
 create mode 100644 src/linker.h<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
MST<br>
<br>
_______________________________________________<br>
SeaBIOS mailing list<br>
<a href="mailto:SeaBIOS@seabios.org">SeaBIOS@seabios.org</a><br>
<a href="http://www.seabios.org/mailman/listinfo/seabios" target="_blank">http://www.seabios.org/mailman/listinfo/seabios</a><br>
</font></span></blockquote></div><br></div>