xemu/hw/acpi
Igor Mammedov 19fff2d405 acpi: include PkgLength size only when requested
Named/Reserved{Field} definition uses PkgLength [1] encoding to specify
field length, however it doesn't include size of PkgLength field itself,
while other block objects that have explicit length of its body account
for PkgLength size while encoding it [2].
This special casing isn't mentioned in ACPI spec, but that's what 'iasl'
compiles NamedField to so add extra argument to build_prepend_pkg_length()
to allow it handle the case.

--
1. ACPI Spec 5.0, 20.2.5.2 Named Objects Encoding, page 822
2. ACPI Spec 5.0, 5.4 Definition Block Encoding

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>
2015-02-26 13:04:14 +01:00
..
acpi_interface.c acpi: introduce TYPE_ACPI_DEVICE_IF interface 2014-06-19 18:44:22 +03:00
aml-build.c acpi: include PkgLength size only when requested 2015-02-26 13:04:14 +01:00
bios-linker-loader.c bios linker: validate pointer within table 2015-02-26 12:42:15 +01:00
core.c acpi: accurate overflow check 2014-11-13 16:13:28 +01:00
cpu_hotplug.c acpi/cpu-hotplug: introduce helper function to keep bit setting in one place 2014-11-02 13:44:12 +02:00
ich9.c acpi, ich9: Add unplug cb for ich9. 2015-02-26 12:42:18 +01:00
Makefile.objs acpi: move generic aml building helpers into dedictated file 2015-02-26 12:42:15 +01:00
memory_hotplug.c acpi: fix typo in memory hotplug MMIO region name 2014-07-06 09:13:54 +03:00
pcihp.c pcihp: fix possible array out of bounds 2014-08-25 00:16:06 +02:00
piix4.c acpi, piix4: Add unplug cb for piix4. 2015-02-26 12:42:19 +01:00