mirror of
https://github.com/qemu/qemu.git
synced 2024-11-29 23:03:41 +08:00
ACPI: Add GICC Affinity Structure
Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org> Reviewed-by: Andrew Jones <drjones@redhat.com> Message-id: 1461667229-9216-3-git-send-email-zhaoshenglong@huawei.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
9695200ad8
commit
e6e400d54f
@ -2474,7 +2474,7 @@ build_srat(GArray *table_data, GArray *linker, MachineState *machine)
|
||||
int apic_id = apic_ids->cpus[i].arch_id;
|
||||
|
||||
core = acpi_data_push(table_data, sizeof *core);
|
||||
core->type = ACPI_SRAT_PROCESSOR;
|
||||
core->type = ACPI_SRAT_PROCESSOR_APIC;
|
||||
core->length = sizeof(*core);
|
||||
core->local_apic_id = apic_id;
|
||||
curnode = pcms->node_cpu[apic_id];
|
||||
|
@ -455,8 +455,10 @@ struct AcpiSystemResourceAffinityTable
|
||||
} QEMU_PACKED;
|
||||
typedef struct AcpiSystemResourceAffinityTable AcpiSystemResourceAffinityTable;
|
||||
|
||||
#define ACPI_SRAT_PROCESSOR 0
|
||||
#define ACPI_SRAT_PROCESSOR_APIC 0
|
||||
#define ACPI_SRAT_MEMORY 1
|
||||
#define ACPI_SRAT_PROCESSOR_x2APIC 2
|
||||
#define ACPI_SRAT_PROCESSOR_GICC 3
|
||||
|
||||
struct AcpiSratProcessorAffinity
|
||||
{
|
||||
@ -483,6 +485,17 @@ struct AcpiSratMemoryAffinity
|
||||
} QEMU_PACKED;
|
||||
typedef struct AcpiSratMemoryAffinity AcpiSratMemoryAffinity;
|
||||
|
||||
struct AcpiSratProcessorGiccAffinity
|
||||
{
|
||||
ACPI_SUB_HEADER_DEF
|
||||
uint32_t proximity;
|
||||
uint32_t acpi_processor_uid;
|
||||
uint32_t flags;
|
||||
uint32_t clock_domain;
|
||||
} QEMU_PACKED;
|
||||
|
||||
typedef struct AcpiSratProcessorGiccAffinity AcpiSratProcessorGiccAffinity;
|
||||
|
||||
/* PCI fw r3.0 MCFG table. */
|
||||
/* Subtable */
|
||||
struct AcpiMcfgAllocation {
|
||||
|
Loading…
Reference in New Issue
Block a user