diff options
author | Ben Warren <ben@skyportsystems.com> | 2017-02-16 15:15:33 -0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-03-02 07:14:26 +0200 |
commit | 489886d1181c4317bbadb49f008d387f6e1536dc (patch) | |
tree | 28f93e221d728c106ac3bca9da01aee6cdaa282b /include/hw/acpi | |
parent | 1e0addb682c3c552fd97480037d4f8ff18e2b87e (diff) | |
download | qemu-489886d1181c4317bbadb49f008d387f6e1536dc.zip qemu-489886d1181c4317bbadb49f008d387f6e1536dc.tar.gz qemu-489886d1181c4317bbadb49f008d387f6e1536dc.tar.bz2 |
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>
Diffstat (limited to 'include/hw/acpi')
-rw-r--r-- | include/hw/acpi/bios-linker-loader.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/acpi/bios-linker-loader.h b/include/hw/acpi/bios-linker-loader.h index fa1e5d1..efe17b0 100644 --- a/include/hw/acpi/bios-linker-loader.h +++ b/include/hw/acpi/bios-linker-loader.h @@ -26,5 +26,12 @@ void bios_linker_loader_add_pointer(BIOSLinker *linker, const char *src_file, uint32_t src_offset); +void bios_linker_loader_write_pointer(BIOSLinker *linker, + const char *dest_file, + uint32_t dst_patched_offset, + uint8_t dst_patched_size, + const char *src_file, + uint32_t src_offset); + void bios_linker_loader_cleanup(BIOSLinker *linker); #endif |