qemu/hw/i386
Igor Mammedov 28213cb6a6 acpi: make bios_linker_loader_add_checksum() API offset based
It should help to make clear that bios_linker works in terms
of offsets within a file. Also it should prevent mistakes
where user passes as arguments pointers to unrelated to file blobs.

While at it, considering that it's a ACPI checksum and
it's initial value must be 0, move checksum field zeroing
into bios_linker_loader_add_checksum() instead of doing it
at every call site manually before bios_linker_loader_add_checksum()
is called.

In addition add extra boundary checks.

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>
2016-06-07 15:39:27 +03:00
..
kvm qemu-common: push cpu.h inclusion out of qemu-common.h 2016-05-19 16:42:29 +02:00
xen include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
acpi-build.c acpi: make bios_linker_loader_add_checksum() API offset based 2016-06-07 15:39:27 +03:00
acpi-build.h Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
intel_iommu_internal.h intel_iommu: large page support 2016-02-06 20:44:10 +02:00
intel_iommu.c intel_iommu: large page support 2016-02-06 20:44:10 +02:00
kvmvapic.c i386: kvmvapic: initialise imm32 variable 2016-05-23 16:53:43 +02:00
Makefile.objs
multiboot.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
multiboot.h
pc_piix.c pc: Set CPU model-id on compat_props for pc <= 2.4 2016-05-23 13:19:36 -03:00
pc_q35.c Sort the fw_cfg file list 2016-04-07 19:57:33 +03:00
pc_sysfw.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
pc.c pc: Postpone SMBIOS table installation to post machine init 2016-06-07 15:36:54 +03:00
pci-assign-load-rom.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00