Message ID | 20241031200502.3869-3-salil.mehta@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Arch agnostic ACPI changes to support vCPU Hotplug (on Archs like ARM) | expand |
diff --git a/hw/acpi/cpu.c b/hw/acpi/cpu.c index 238a0edbc1..8940687f90 100644 --- a/hw/acpi/cpu.c +++ b/hw/acpi/cpu.c @@ -265,6 +265,7 @@ void acpi_cpu_plug_cb(HotplugHandler *hotplug_dev, } cdev->cpu = CPU(dev); + cdev->is_enabled = true; if (dev->hotplugged) { cdev->is_inserting = true; acpi_send_event(DEVICE(hotplug_dev), ACPI_CPU_HOTPLUG_STATUS); @@ -296,6 +297,7 @@ void acpi_cpu_unplug_cb(CPUHotplugState *cpu_st, return; } + cdev->is_enabled = false; cdev->cpu = NULL; }