qemu-patch-raspberry4/hw/i386
Paolo Bonzini acd727e7cb acpi-dsdt: procedurally generate _PRT
This replaces the _PRT constant with a method that computes it.

The problem is that the DSDT+SSDT have grown from 2.0 to 2.1,
enough to cross the 8k barrier (we align the ACPI tables to 4k
before putting them in fw_cfg).  This causes problems with
migration and the pc-i440fx-2.0 machine type.

The solution to the problem is to hardcode 64k as the limit,
but this doesn't solve the bug with pc-i440fx-2.0.  The fix will be
for QEMU 2.1 to use exactly the same size as QEMU 2.0 for the
ACPI tables.  First, however, we must make the actual AML
equal or smaller; to do this, rewrite _PRT in a way that saves
over 1k of bytecode.

Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2014-07-28 23:02:39 +02:00
..
kvm Revert "kvmclock: Ensure time in migration never goes backward" 2014-07-18 15:28:03 +02:00
xen savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
acpi-build.c pc: ACPI BIOS: reserve SRAT entry for hotplug mem hole 2014-06-19 16:41:52 +03:00
acpi-build.h i386: ACPI table generation code from seabios 2013-10-14 17:48:57 +03:00
acpi-defs.h acpi: fix endian-ness for table ids 2014-03-18 16:46:07 +02:00
acpi-dsdt-cpu-hotplug.dsl dsdt: tweak ACPI ID for hotplug resource device 2014-04-08 15:22:59 +03:00
acpi-dsdt-dbug.dsl i386: add ACPI table files from seabios 2013-10-14 17:48:51 +03:00
acpi-dsdt-hpet.dsl ACPI: Remove commented-out code from HPET._CRS 2014-02-10 11:09:33 +02:00
acpi-dsdt-isa.dsl ACPI: Fix AppleSMC _STA size 2014-01-26 13:06:48 +02:00
acpi-dsdt-pci-crs.dsl pc: Q35 DSDT: exclude CPU hotplug IO range from PCI bus resources 2014-01-26 13:11:44 +02:00
acpi-dsdt.dsl acpi-dsdt: procedurally generate _PRT 2014-07-28 23:02:39 +02:00
acpi-dsdt.hex.generated acpi-dsdt: procedurally generate _PRT 2014-07-28 23:02:39 +02:00
bios-linker-loader.c i386: Add missing include file for QEMU_PACKED 2014-02-01 13:43:52 +04:00
bios-linker-loader.h i386: add bios linker/loader 2013-10-14 17:48:52 +03:00
kvmvapic.c savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
Makefile.objs pc: acpi: do not hardcode preprocessor 2014-06-19 18:44:21 +03:00
multiboot.c multiboot: Calculate upper_mem in the ROM 2013-06-28 14:01:52 -05:00
multiboot.h refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
pc.c pc & q35: Add new machine opt max-ram-below-4g 2014-06-23 18:02:41 +03:00
pc_piix.c Fix new typos in comments (found by codespell) 2014-07-18 17:45:36 +04:00
pc_q35.c Fix new typos in comments (found by codespell) 2014-07-18 17:45:36 +04:00
pc_sysfw.c hw/i386/pc_sysfw: support two flash drives 2013-12-23 13:12:34 +02:00
q35-acpi-dsdt.dsl pc: ACPI BIOS: make GPE.3 handle memory hotplug event on PIIX and Q35 machines 2014-06-19 16:41:52 +03:00
q35-acpi-dsdt.hex.generated acpi: update generated files 2014-06-19 16:41:52 +03:00
smbios.c smbios: use g_free directly on NULL pointers 2014-06-10 19:39:34 +04:00
ssdt-mem.dsl pc: ACPI BIOS: implement memory hotplug interface 2014-06-19 16:41:51 +03:00
ssdt-mem.hex.generated acpi: update generated files 2014-06-19 16:41:52 +03:00
ssdt-misc.dsl pc: ACPI BIOS: implement memory hotplug interface 2014-06-19 16:41:51 +03:00
ssdt-misc.hex.generated acpi: update generated files 2014-06-19 16:41:52 +03:00
ssdt-pcihp.dsl acpi-build: append description for non-hotplug 2014-03-09 21:09:30 +02:00
ssdt-pcihp.hex.generated acpi: update generated files 2014-06-19 16:41:52 +03:00
ssdt-proc.dsl ssdt: fix PBLK length 2013-10-14 17:48:57 +03:00
ssdt-proc.hex.generated acpi: update generated files 2014-06-19 16:41:52 +03:00