]> xenbits.xensource.com Git - xen.git/commit
hvmloader, libxl: use the correct ACPI settings depending on device model
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Thu, 17 Aug 2017 14:57:13 +0000 (15:57 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 22 Aug 2017 15:36:48 +0000 (16:36 +0100)
commit149c6bbbf775b5e6dd6beae329fcdaab33a0f8cd
tree6efada2965dbeef47934985131c23a7ea801dca8
parent88bfbf90e35f1213f9967a97dee0b2039f9998a4
hvmloader, libxl: use the correct ACPI settings depending on device model

We need to choose ACPI tables and ACPI IO port location
properly depending on the device model version we are running.
Previously, this decision was made by BIOS type specific
code in hvmloader, e.g. always load QEMU traditional specific
tables if it's ROMBIOS and always load QEMU Xen specific
tables if it's SeaBIOS.

This change saves this behavior (for compatibility) but adds
an additional way (xenstore key) to specify the correct
device model if we happen to run a non-default one. Toolstack
bit makes use of it.

The enforcement of BIOS type depending on QEMU version will
be lifted later when the rest of ROMBIOS compatibility fixes
are in place.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/firmware/hvmloader/hvmloader.c
tools/firmware/hvmloader/ovmf.c
tools/firmware/hvmloader/rombios.c
tools/firmware/hvmloader/seabios.c
tools/firmware/hvmloader/util.c
tools/firmware/hvmloader/util.h
tools/libxl/libxl_create.c