computing-offload/generic_vdpa/qemu/hw-acpi-Support-acpi-ged-to-report-CPU-s-OST-info.patch
jiangdongxu 79c4324644 add generic_vdpa basecode
Change-Id: I2d302dda68298877c65c99147f5bf22186a59aac
2024-09-19 17:19:46 +08:00

29 lines
996 B
Diff

From 9e8ccc2a868e719233a34946106859461c057ade Mon Sep 17 00:00:00 2001
From: Kunkun Jiang <jiangkunkun@huawei.com>
Date: Tue, 14 Feb 2023 20:28:11 +0800
Subject: [PATCH] hw/acpi: Support acpi-ged to report CPU's OST info
Setup an ARM virtual machine of machine virt and execute qmp
"query-acpi-ospm-status" but can not get the CPU's OST info.
Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com>
---
hw/acpi/generic_event_device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/acpi/generic_event_device.c b/hw/acpi/generic_event_device.c
index 53e9112d9f..9118681662 100644
--- a/hw/acpi/generic_event_device.c
+++ b/hw/acpi/generic_event_device.c
@@ -278,6 +278,7 @@ static void acpi_ged_ospm_status(AcpiDeviceIf *adev, ACPIOSTInfoList ***list)
AcpiGedState *s = ACPI_GED(adev);
acpi_memory_ospm_status(&s->memhp_state, list);
+ acpi_cpu_ospm_status(&s->cpuhp_state, list);
}
static void acpi_ged_send_event(AcpiDeviceIf *adev, AcpiEventStatusBits ev)
--
2.27.0