linker-loader: Add new 'write pointer' command
commit489886d1181c4317bbadb49f008d387f6e1536dc
authorBen Warren <ben@skyportsystems.com>
Thu, 16 Feb 2017 23:15:33 +0000 (16 15:15 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 2 Mar 2017 05:14:26 +0000 (2 07:14 +0200)
tree28f93e221d728c106ac3bca9da01aee6cdaa282b
parent1e0addb682c3c552fd97480037d4f8ff18e2b87e
linker-loader: Add new 'write pointer' command

This is similar to the existing 'add pointer' functionality, but instead
of instructing the guest (BIOS or UEFI) to patch memory, it instructs
the guest to write the pointer back to QEMU via a writeable fw_cfg file.

Signed-off-by: Ben Warren <ben@skyportsystems.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/bios-linker-loader.c
include/hw/acpi/bios-linker-loader.h