summary refs log tree commit diff stats
path: root/python/setup.py
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2021-09-24 08:27:28 -0400
committerMichael S. Tsirkin <mst@redhat.com>2021-10-05 17:30:57 -0400
commitc151fd87102cbb4082ac5dbcd704196b0495d28a (patch)
tree6269aa9bc28e1ce79100ff76dd6229b657f73c86 /python/setup.py
parent46ce017167d800c5d96104a88cfaed9949c4a3b6 (diff)
downloadfocaccia-qemu-c151fd87102cbb4082ac5dbcd704196b0495d28a.tar.gz
focaccia-qemu-c151fd87102cbb4082ac5dbcd704196b0495d28a.zip
acpi: add helper routines to initialize ACPI tables
Patch introduces acpi_table_begin()/ acpi_table_end() API
that hides pointer/offset arithmetic from user as opposed
to build_header(), to prevent errors caused by it [1].

 acpi_table_begin():
     initializes table header and keeps track of
     table data/offsets
 acpi_table_end():
     sets actual table length and tells bios loader
     where table is for the later initialization on
     guest side.

1) commits
   bb9feea43179 x86: acpi: use offset instead of pointer when using build_header()
   4d027afeb3a9 Virt: ACPI: fix qemu assert due to re-assigned table data address

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20210924122802.1455362-2-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: Yanan Wang <wangyanan55@huawei.com>
Diffstat (limited to 'python/setup.py')
0 files changed, 0 insertions, 0 deletions