qemu-e2k/hw/i386
Michael S. Tsirkin afaa2e4bc4 acpi-build: simplify rsdp management for legacy
For legacy machine types, rsdp is not in RAM, so we need a copy of rsdp
for fw cfg. We previously used g_array_free with false parameter,
but this seems to confuse people.
This also wastes a bit of memory as the buffer is unused for new
machine types.

Let's just use plain g_memdup, and free original memory together with
the array.

TODO: rationalize tcpalog memory management, and get rid of the mfre
parameter.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
2015-02-26 12:42:20 +01:00
..
kvm pci-assign: Convert to realize 2015-02-26 12:42:17 +01:00
xen hw: Convert from BlockDriverState to BlockBackend, mostly 2014-10-20 14:02:25 +02:00
acpi-build.c acpi-build: simplify rsdp management for legacy 2015-02-26 12:42:20 +01:00
acpi-build.h i386: ACPI table generation code from seabios 2013-10-14 17:48:57 +03:00
acpi-defs.h intel-iommu: add DMAR table to ACPI tables 2014-08-28 23:10:22 +02:00
acpi-dsdt-cpu-hotplug.dsl pc: acpi: fix WindowsXP BSOD when memory hotplug is enabled 2015-01-26 20:25:52 +02: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-mem-hotplug.dsl target-i386: move generic memory hotplug methods to DSDTs 2014-11-24 20:57:10 +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 target-i386: move generic memory hotplug methods to DSDTs 2014-11-24 20:57:10 +02:00
acpi-dsdt.hex.generated acpi: update generated hex files 2015-01-27 14:45:18 +02:00
intel_iommu_internal.h intel-iommu: add IOTLB using hash table 2014-08-28 23:10:22 +02:00
intel_iommu.c exec: RCUify AddressSpaceDispatch 2015-02-16 17:30:19 +01:00
kvmvapic.c kvmvapic: patch_instruction fix 2014-10-31 11:29:02 +01:00
Makefile.objs bios-linker-loader: move source to common location 2015-01-27 14:46:17 +02:00
multiboot.c multiboot: Fix offset of bootloader name 2015-01-26 12:22:44 +01:00
multiboot.h refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
pc_piix.c acpi: has_immutable_rsdp->!rsdp_in_ram 2015-02-26 12:42:20 +01:00
pc_q35.c acpi: has_immutable_rsdp->!rsdp_in_ram 2015-02-26 12:42:20 +01:00
pc_sysfw.c x86: Drop superfluous conditionals around g_free() 2014-12-15 12:21:02 +01:00
pc.c pc: memory: Validate alignment of maxram_size to page size 2015-02-26 12:42:19 +01:00
q35-acpi-dsdt.dsl target-i386: move generic memory hotplug methods to DSDTs 2014-11-24 20:57:10 +02:00
q35-acpi-dsdt.hex.generated acpi: update generated hex files 2015-01-27 14:45:18 +02:00
smbios.c error: Use error_report_err() where appropriate 2015-02-18 10:51:09 +01:00
ssdt-mem.dsl hw:i386: typo fix: MEMORY_HOPTLUG_DEVICE -> MEMORY_HOTPLUG_DEVICE 2014-08-14 13:20:49 +02:00
ssdt-mem.hex.generated target-i386: move generic memory hotplug methods to DSDTs 2014-11-24 20:57:10 +02:00
ssdt-misc.dsl target-i386: move generic memory hotplug methods to DSDTs 2014-11-24 20:57:10 +02:00
ssdt-misc.hex.generated target-i386: move generic memory hotplug methods to DSDTs 2014-11-24 20:57:10 +02: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
ssdt-tpm.dsl Add ACPI tables for TPM 2014-08-25 00:16:06 +02:00
ssdt-tpm.hex.generated ssdt-tpm: add generated hex file to git 2014-08-25 00:16:06 +02:00