mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
acpi: take oem_id in build_header(), optionally
This patch is the continuation of commit 8870ca0e94
("acpi: support
specified oem table id for build_header"). It will allow us to control the
OEM ID field too in the SDT header.
Cc: "Michael S. Tsirkin" <mst@redhat.com> (supporter:ACPI/SMBIOS)
Cc: Igor Mammedov <imammedo@redhat.com> (supporter:ACPI/SMBIOS)
Cc: Xiao Guangrong <guangrong.xiao@linux.intel.com> (maintainer:NVDIMM)
Cc: Shannon Zhao <zhaoshenglong@huawei.com> (maintainer:ARM ACPI Subsystem)
Cc: Paolo Bonzini <pbonzini@redhat.com> (maintainer:X86)
Cc: Richard W.M. Jones <rjones@redhat.com>
Cc: Aleksei Kovura <alex3kov@zoho.com>
Cc: Michael Tokarev <mjt@tls.msk.ru>
Cc: Steven Newbury <steve@snewbury.org.uk>
RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1248758
LP: https://bugs.launchpad.net/qemu/+bug/1533848
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org>
This commit is contained in:
parent
e4e8ba04c2
commit
37ad223c51
5 changed files with 26 additions and 21 deletions
|
@ -357,7 +357,7 @@ build_fadt(GArray *table_data, GArray *linker, AcpiPmInfo *pm,
|
|||
fadt_setup(fadt, pm);
|
||||
|
||||
build_header(linker, table_data,
|
||||
(void *)fadt, "FACP", sizeof(*fadt), 1, NULL);
|
||||
(void *)fadt, "FACP", sizeof(*fadt), 1, NULL, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -427,7 +427,7 @@ build_madt(GArray *table_data, GArray *linker, AcpiCpuInfo *cpu)
|
|||
|
||||
build_header(linker, table_data,
|
||||
(void *)(table_data->data + madt_start), "APIC",
|
||||
table_data->len - madt_start, 1, NULL);
|
||||
table_data->len - madt_start, 1, NULL, NULL);
|
||||
}
|
||||
|
||||
/* Assign BSEL property to all buses. In the future, this can be changed
|
||||
|
@ -2286,7 +2286,7 @@ build_dsdt(GArray *table_data, GArray *linker,
|
|||
g_array_append_vals(table_data, dsdt->buf->data, dsdt->buf->len);
|
||||
build_header(linker, table_data,
|
||||
(void *)(table_data->data + table_data->len - dsdt->buf->len),
|
||||
"DSDT", dsdt->buf->len, 1, NULL);
|
||||
"DSDT", dsdt->buf->len, 1, NULL, NULL);
|
||||
free_aml_allocator();
|
||||
}
|
||||
|
||||
|
@ -2302,7 +2302,7 @@ build_hpet(GArray *table_data, GArray *linker)
|
|||
hpet->timer_block_id = cpu_to_le32(0x8086a201);
|
||||
hpet->addr.address = cpu_to_le64(HPET_BASE);
|
||||
build_header(linker, table_data,
|
||||
(void *)hpet, "HPET", sizeof(*hpet), 1, NULL);
|
||||
(void *)hpet, "HPET", sizeof(*hpet), 1, NULL, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -2325,7 +2325,7 @@ build_tpm_tcpa(GArray *table_data, GArray *linker, GArray *tcpalog)
|
|||
sizeof(tcpa->log_area_start_address));
|
||||
|
||||
build_header(linker, table_data,
|
||||
(void *)tcpa, "TCPA", sizeof(*tcpa), 2, NULL);
|
||||
(void *)tcpa, "TCPA", sizeof(*tcpa), 2, NULL, NULL);
|
||||
|
||||
acpi_data_push(tcpalog, TPM_LOG_AREA_MINIMUM_SIZE);
|
||||
}
|
||||
|
@ -2342,7 +2342,7 @@ build_tpm2(GArray *table_data, GArray *linker)
|
|||
tpm2_ptr->start_method = cpu_to_le32(TPM2_START_METHOD_MMIO);
|
||||
|
||||
build_header(linker, table_data,
|
||||
(void *)tpm2_ptr, "TPM2", sizeof(*tpm2_ptr), 4, NULL);
|
||||
(void *)tpm2_ptr, "TPM2", sizeof(*tpm2_ptr), 4, NULL, NULL);
|
||||
}
|
||||
|
||||
typedef enum {
|
||||
|
@ -2456,7 +2456,7 @@ build_srat(GArray *table_data, GArray *linker)
|
|||
build_header(linker, table_data,
|
||||
(void *)(table_data->data + srat_start),
|
||||
"SRAT",
|
||||
table_data->len - srat_start, 1, NULL);
|
||||
table_data->len - srat_start, 1, NULL, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -2485,7 +2485,7 @@ build_mcfg_q35(GArray *table_data, GArray *linker, AcpiMcfgInfo *info)
|
|||
} else {
|
||||
sig = "MCFG";
|
||||
}
|
||||
build_header(linker, table_data, (void *)mcfg, sig, len, 1, NULL);
|
||||
build_header(linker, table_data, (void *)mcfg, sig, len, 1, NULL, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -2509,7 +2509,7 @@ build_dmar_q35(GArray *table_data, GArray *linker)
|
|||
drhd->address = cpu_to_le64(Q35_HOST_BRIDGE_IOMMU_ADDR);
|
||||
|
||||
build_header(linker, table_data, (void *)(table_data->data + dmar_start),
|
||||
"DMAR", table_data->len - dmar_start, 1, NULL);
|
||||
"DMAR", table_data->len - dmar_start, 1, NULL, NULL);
|
||||
}
|
||||
|
||||
static GArray *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue