diff options
| author | Igor Mammedov | 2021-09-24 14:27:50 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2021-10-05 23:30:57 +0200 |
| commit | d0aa026a498cdd4e082f12618767f19a2532712a (patch) | |
| tree | edf518beb889b717c72d6beeb534e5423e7d305b /include/hw/i386 | |
| parent | acpi: x86: remove dead code (diff) | |
| download | qemu-d0aa026a498cdd4e082f12618767f19a2532712a.tar.gz qemu-d0aa026a498cdd4e082f12618767f19a2532712a.tar.xz qemu-d0aa026a498cdd4e082f12618767f19a2532712a.zip | |
acpi: x86: set enabled when composing _MAT entries
Instead of composing disabled _MAT entry and then later on
patching it to enabled for hotpluggbale CPUs in DSDT,
set it to enabled at the time _MAT entry is built.
It will allow to drop usage of packed structures in
following patches when build_madt() is switched to use
build_append_int_noprefix() API.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20210924122802.1455362-24-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/i386')
| -rw-r--r-- | include/hw/i386/pc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 5748d7c55f..11426e26dc 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -190,10 +190,10 @@ bool pc_system_ovmf_table_find(const char *entry, uint8_t **data, int *data_len); void pc_system_parse_ovmf_flash(uint8_t *flash_ptr, size_t flash_size); - -/* acpi-build.c */ +/* hw/i386/acpi-common.c */ void pc_madt_cpu_entry(AcpiDeviceIf *adev, int uid, - const CPUArchIdList *apic_ids, GArray *entry); + const CPUArchIdList *apic_ids, GArray *entry, + bool force_enabled); /* sgx.c */ void pc_machine_init_sgx_epc(PCMachineState *pcms); |
