[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH RFC V2 09/37] hw/acpi: Move CPU ctrl-dev MMIO region len macro to
From: |
Salil Mehta |
Subject: |
[PATCH RFC V2 09/37] hw/acpi: Move CPU ctrl-dev MMIO region len macro to common header file |
Date: |
Tue, 26 Sep 2023 11:04:08 +0100 |
CPU ctrl-dev MMIO region length could be used in ACPI GED (common ACPI code
across architectures) and various other architecture specific places. To make
these code places independent of compilation order, ACPI_CPU_HOTPLUG_REG_LEN
macro should be moved to a header file.
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
---
hw/acpi/cpu.c | 2 +-
include/hw/acpi/cpu_hotplug.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/acpi/cpu.c b/hw/acpi/cpu.c
index 19c154d78f..45defdc0e2 100644
--- a/hw/acpi/cpu.c
+++ b/hw/acpi/cpu.c
@@ -1,12 +1,12 @@
#include "qemu/osdep.h"
#include "migration/vmstate.h"
#include "hw/acpi/cpu.h"
+#include "hw/acpi/cpu_hotplug.h"
#include "qapi/error.h"
#include "qapi/qapi-events-acpi.h"
#include "trace.h"
#include "sysemu/numa.h"
-#define ACPI_CPU_HOTPLUG_REG_LEN 12
#define ACPI_CPU_SELECTOR_OFFSET_WR 0
#define ACPI_CPU_FLAGS_OFFSET_RW 4
#define ACPI_CPU_CMD_OFFSET_WR 5
diff --git a/include/hw/acpi/cpu_hotplug.h b/include/hw/acpi/cpu_hotplug.h
index 3b932abbbb..48b291e45e 100644
--- a/include/hw/acpi/cpu_hotplug.h
+++ b/include/hw/acpi/cpu_hotplug.h
@@ -19,6 +19,8 @@
#include "hw/hotplug.h"
#include "hw/acpi/cpu.h"
+#define ACPI_CPU_HOTPLUG_REG_LEN 12
+
typedef struct AcpiCpuHotplug {
Object *device;
MemoryRegion io;
--
2.34.1
- [PATCH RFC V2 04/37] arm/virt, target/arm: Machine init time change common to vCPU {cold|hot}-plug, (continued)
- [PATCH RFC V2 04/37] arm/virt, target/arm: Machine init time change common to vCPU {cold|hot}-plug, Salil Mehta, 2023/09/26
- [PATCH RFC V2 05/37] accel/kvm: Extract common KVM vCPU {creation, parking} code, Salil Mehta, 2023/09/26
- [PATCH RFC V2 06/37] arm/virt, kvm: Pre-create disabled possible vCPUs @machine init, Salil Mehta, 2023/09/26
- [PATCH RFC V2 07/37] arm/virt, gicv3: Changes to pre-size GIC with possible vcpus @machine init, Salil Mehta, 2023/09/26
- [PATCH RFC V2 08/37] arm/virt: Init PMU at host for all possible vcpus, Salil Mehta, 2023/09/26
- [PATCH RFC V2 09/37] hw/acpi: Move CPU ctrl-dev MMIO region len macro to common header file,
Salil Mehta <=
- [PATCH RFC V2 10/37] arm/acpi: Enable ACPI support for vcpu hotplug, Salil Mehta, 2023/09/26
- [PATCH RFC V2 11/37] hw/acpi: Add ACPI CPU hotplug init stub, Salil Mehta, 2023/09/26
- [PATCH RFC V2 12/37] hw/acpi: Use qemu_present_cpu() API in ACPI CPU hotplug init, Salil Mehta, 2023/09/26
- [PATCH RFC V2 13/37] hw/acpi: Init GED framework with cpu hotplug events, Salil Mehta, 2023/09/26
- [PATCH RFC V2 14/37] arm/virt: Add cpu hotplug events to GED during creation, Salil Mehta, 2023/09/26