qemu/hw/i386
Gabriel L. Somlo 3a5c76baf3 fw_cfg: factor out initialization of FW_CFG_ID (rev. number)
The fw_cfg documentation says this of the revision key (0x0001, FW_CFG_ID):

> A 32-bit little-endian unsigned int, this item is used as an interface
> revision number, and is currently set to 1 by all QEMU architectures
> which expose a fw_cfg device.

arm/virt doesn't.  It could be argued that that's an error in
"hw/arm/virt.c"; on the other hand, all of the other fw_cfg providing
boards set the interface version to 1 manually, despite the device
coming from the same, shared implementation. Therefore, instead of
adding

    fw_cfg_add_i32(fw_cfg, FW_CFG_ID, 1);

to arm/virt, consolidate all such existing calls in the fw_cfg
initialization code.

Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Message-Id: <1426789244-26318-1-git-send-email-somlo@cmu.edu>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-03-25 13:37:10 +01:00
..
kvm pci-assign: Convert to realize 2015-02-26 12:42:17 +01:00
xen
Makefile.objs pc: acpi-build: drop template patching and create PCI bus tree dynamically 2015-03-01 12:33:23 +01:00
acpi-build.c acpi: drop unused code 2015-03-08 11:51:46 +01:00
acpi-build.h
acpi-defs.h
acpi-dsdt-cpu-hotplug.dsl pc: acpi-build: create CPU hotplug IO region dynamically 2015-02-26 13:04:17 +01:00
acpi-dsdt-dbug.dsl
acpi-dsdt-hpet.dsl
acpi-dsdt-isa.dsl pc: acpi-build: drop template patching and create Device(SMC) dynamically 2015-03-01 12:33:22 +01:00
acpi-dsdt-mem-hotplug.dsl pc: acpi-build: create memory hotplug IO region dynamically 2015-02-26 13:04:18 +01:00
acpi-dsdt.dsl pc: acpi-build: drop template patching and create Device(SMC) dynamically 2015-03-01 12:33:22 +01:00
acpi-dsdt.hex.generated acpi: update generated files 2015-03-04 16:05:32 +01:00
intel_iommu.c
intel_iommu_internal.h
kvmvapic.c
multiboot.c
multiboot.h
pc.c fw_cfg: factor out initialization of FW_CFG_ID (rev. number) 2015-03-25 13:37:10 +01:00
pc_piix.c Revert "target-i386: Disable HLE and RTM on Haswell & Broadwell" 2015-03-19 16:35:14 -03:00
pc_q35.c Revert "target-i386: Disable HLE and RTM on Haswell & Broadwell" 2015-03-19 16:35:14 -03:00
pc_sysfw.c
q35-acpi-dsdt.dsl pc: acpi-build: drop template patching and create Device(SMC) dynamically 2015-03-01 12:33:22 +01:00
q35-acpi-dsdt.hex.generated acpi: update generated files 2015-03-04 16:05:32 +01:00
smbios.c smbios: add max speed comdline option for type-17 (meory device) structure 2015-03-19 11:18:51 +03:00
ssdt-tpm.dsl
ssdt-tpm.hex.generated acpi: update generated files 2015-03-02 16:14:33 +01:00