diff options
author | Igor Mammedov <imammedo@redhat.com> | 2021-09-24 08:27:36 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-10-05 17:30:57 -0400 |
commit | 689ef4721a06dd724e447d8b8e2dc3622c866557 (patch) | |
tree | 2d33a5e3e5ad8036d70214bbf14f12c4aa739677 /hw/rtc | |
parent | 578bc7a06462fd71c66d1562c457b01da307a7b6 (diff) | |
download | qemu-689ef4721a06dd724e447d8b8e2dc3622c866557.zip qemu-689ef4721a06dd724e447d8b8e2dc3622c866557.tar.gz qemu-689ef4721a06dd724e447d8b8e2dc3622c866557.tar.bz2 |
acpi: build_hmat: use acpi_table_begin()/acpi_table_end() instead of build_header()
it replaces error-prone pointer arithmetic for build_header() API,
with 2 calls to start and finish table creation,
which hides offsets magic from API user.
Also since acpi_table_begin() reserves space only for standard header
while previous acpi_data_push() reserved the header + 4 bytes field,
add 4 bytes 'Reserved' field into hmat_build_table_structs()
which didn have it.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20210924122802.1455362-10-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/rtc')
0 files changed, 0 insertions, 0 deletions