acpi: x86: set enabled when composing _MAT entries
commitd0aa026a498cdd4e082f12618767f19a2532712a
authorIgor Mammedov <imammedo@redhat.com>
Fri, 24 Sep 2021 12:27:50 +0000 (24 08:27 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 5 Oct 2021 21:30:57 +0000 (5 17:30 -0400)
treeedf518beb889b717c72d6beeb534e5423e7d305b
parentb10e7f4f8f05b3956eabf0661320c71f1e3bab10
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>
hw/acpi/acpi-x86-stub.c
hw/acpi/cpu.c
hw/i386/acpi-common.c
include/hw/acpi/acpi_dev_interface.h
include/hw/i386/pc.h