pc: acpi-build: update linker on guest access
commit6e00619b1eb2050bf2c75d52edfe7b4566704922
authorIgor Mammedov <imammedo@redhat.com>
Mon, 9 Feb 2015 13:59:54 +0000 (9 13:59 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 26 Feb 2015 11:42:19 +0000 (26 12:42 +0100)
tree51762e30f4b50f07f61968d4d5e3564a6cf0af25
parentd70414a5788c3d51f8ce4d2f437e669e6b99dc59
pc: acpi-build: update linker on guest access

Linker table is build only once, so if later during
tables rebuild sizes of other ACPI tables change
pointers will be patched incorrectly due to wrong
offsets in linker. Resulting in guest not being able
to find ACPI tables.
Fix it by updating 'linker' table with the rest of
tables when firmware reads it.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
hw/i386/acpi-build.c