[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 04/13] Revert "hw/acpi: Make CPUs ACPI `presence` conditional duri
From: |
Michael S. Tsirkin |
Subject: |
[PULL 04/13] Revert "hw/acpi: Make CPUs ACPI `presence` conditional during vCPU hot-unplug" |
Date: |
Wed, 27 Nov 2024 08:57:37 -0500 |
From: Igor Mammedov <imammedo@redhat.com>
This reverts commit 2d6cfbaf174b91dfa9a50065f7494634afb39c23.
The patch is supposed to be part of ARM CPU hotplug series and has not value
on its own without it. The series however is still in RFC stage and outside
of scope 9.2 release.
On top of that it introduces not needed callback that pokes directly into
CPU state without any need for that. Instead properties and AML generator
option should be used to configure static platform depended vCPU presence
state.
Drop the patch so that corrected version could be posted along with
ARM CPU hotplug series and properly reviewed in relevant context.
That also helps us to keep history cleaner with new patch being
against original code vs a string of fixups on top of current mess.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20241112170258.2996640-4-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
include/hw/core/cpu.h | 1 -
hw/acpi/cpu.c | 15 +--------------
2 files changed, 1 insertion(+), 15 deletions(-)
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
index e7de77dc6d..c3ca0babcb 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -158,7 +158,6 @@ struct CPUClass {
void (*dump_state)(CPUState *cpu, FILE *, int flags);
void (*query_cpu_fast)(CPUState *cpu, CpuInfoFast *value);
int64_t (*get_arch_id)(CPUState *cpu);
- bool (*cpu_persistent_status)(CPUState *cpu);
void (*set_pc)(CPUState *cpu, vaddr value);
vaddr (*get_pc)(CPUState *cpu);
int (*gdb_read_register)(CPUState *cpu, GByteArray *buf, int reg);
diff --git a/hw/acpi/cpu.c b/hw/acpi/cpu.c
index 9b03b4292e..5cb60ca8bc 100644
--- a/hw/acpi/cpu.c
+++ b/hw/acpi/cpu.c
@@ -233,17 +233,6 @@ void cpu_hotplug_hw_init(MemoryRegion *as, Object *owner,
memory_region_add_subregion(as, base_addr, &state->ctrl_reg);
}
-static bool should_remain_acpi_present(DeviceState *dev)
-{
- CPUClass *k = CPU_GET_CLASS(dev);
- /*
- * A system may contain CPUs that are always present on one die, NUMA node,
- * or socket, yet may be non-present on another simultaneously. Check from
- * architecture specific code.
- */
- return k->cpu_persistent_status && k->cpu_persistent_status(CPU(dev));
-}
-
static AcpiCpuStatus *get_cpu_status(CPUHotplugState *cpu_st, DeviceState *dev)
{
CPUClass *k = CPU_GET_CLASS(dev);
@@ -300,9 +289,7 @@ void acpi_cpu_unplug_cb(CPUHotplugState *cpu_st,
return;
}
- if (!should_remain_acpi_present(dev)) {
- cdev->cpu = NULL;
- }
+ cdev->cpu = NULL;
}
static const VMStateDescription vmstate_cpuhp_sts = {
--
MST
- [PULL 00/13] virtio,pc,pci: bug fixes, new test, Michael S. Tsirkin, 2024/11/27
- [PULL 01/13] vhost_net: fix assertion triggered by batch of host notifiers processing, Michael S. Tsirkin, 2024/11/27
- [PULL 02/13] qtest: allow ACPI DSDT Table changes, Michael S. Tsirkin, 2024/11/27
- [PULL 03/13] Revert "hw/acpi: Update ACPI `_STA` method with QOM vCPU ACPI Hotplug states", Michael S. Tsirkin, 2024/11/27
- [PULL 04/13] Revert "hw/acpi: Make CPUs ACPI `presence` conditional during vCPU hot-unplug",
Michael S. Tsirkin <=
- [PULL 06/13] hw/cxl: Check for zero length features in cmd_features_set_feature(), Michael S. Tsirkin, 2024/11/27
- [PULL 07/13] qapi: fix device-sync-config since-version, Michael S. Tsirkin, 2024/11/27
- [PULL 05/13] tests/acpi: update expected blobs, Michael S. Tsirkin, 2024/11/27
- [PULL 10/13] bios-tables-test: Allow for new acpihmat-generic-x test data., Michael S. Tsirkin, 2024/11/27
- [PULL 09/13] qapi/qom: Change Since entry for AcpiGenericPortProperties to 9.2, Michael S. Tsirkin, 2024/11/27
- [PULL 11/13] bios-tables-test: Add complex SRAT / HMAT test for GI GP, Michael S. Tsirkin, 2024/11/27
- [PULL 12/13] bios-tables-test: Add data for complex numa test (GI, GP etc), Michael S. Tsirkin, 2024/11/27
- [PULL 13/13] vhost: fail device start if iotlb update fails, Michael S. Tsirkin, 2024/11/27
- [PULL 08/13] hw/acpi: Fix size of HID in build_append_srat_acpi_device_handle(), Michael S. Tsirkin, 2024/11/27
- Re: [PULL 00/13] virtio,pc,pci: bug fixes, new test, Peter Maydell, 2024/11/28