diff options
| author | Pavel Fedin | 2015-09-24 02:29:37 +0200 |
|---|---|---|
| committer | Peter Maydell | 2015-09-24 02:29:37 +0200 |
| commit | b92ad3949bc9cacd1652b4e07e7f6003b9e512af (patch) | |
| tree | 0af1c76a1c580b9939cd1ae5a1c3667000861f64 /include/hw/acpi | |
| parent | hw/intc: Initial implementation of vGICv3 (diff) | |
| download | qemu-b92ad3949bc9cacd1652b4e07e7f6003b9e512af.tar.gz qemu-b92ad3949bc9cacd1652b4e07e7f6003b9e512af.tar.xz qemu-b92ad3949bc9cacd1652b4e07e7f6003b9e512af.zip | |
hw/arm/virt: Add gic-version option to virt machine
Add gic_version to VirtMachineState, set it to value of the option
and pass it around where necessary. Instantiate devices and fdt
nodes according to the choice.
max_cpus for virt machine increased to 123 (calculated from redistributor
space available in the memory map). GICv2 compatibility check happens
inside arm_gic_common_realize().
ITS region is added to the memory map too, however currently it not used,
just reserved.
Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Tested-by: Ashok kumar <ashoks@broadcom.com>
[PMM: Added missing cpu_to_le* calls, thanks to Shannon Zhao]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/acpi')
| -rw-r--r-- | include/hw/acpi/acpi-defs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hw/acpi/acpi-defs.h b/include/hw/acpi/acpi-defs.h index 2b431e6242..c7a03d43b9 100644 --- a/include/hw/acpi/acpi-defs.h +++ b/include/hw/acpi/acpi-defs.h @@ -384,6 +384,15 @@ struct AcpiMadtGenericMsiFrame { typedef struct AcpiMadtGenericMsiFrame AcpiMadtGenericMsiFrame; +struct AcpiMadtGenericRedistributor { + ACPI_SUB_HEADER_DEF + uint16_t reserved; + uint64_t base_address; + uint32_t range_length; +} QEMU_PACKED; + +typedef struct AcpiMadtGenericRedistributor AcpiMadtGenericRedistributor; + /* * Generic Timer Description Table (GTDT) */ |
