aboutsummaryrefslogtreecommitdiff
path: root/include/hw/acpi
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2016-04-22 19:06:36 +0200
committerMichael S. Tsirkin <mst@redhat.com>2016-06-24 05:21:35 +0300
commit76623d00ae578335f6c9f31cd13fc5bf1931dbc3 (patch)
tree241c66502f726f271ef5c7d0f80ea4dcf77db1f4 /include/hw/acpi
parent8872c25a26ccc2c2f62903b023212bbc0a4f5d39 (diff)
downloadqemu-76623d00ae578335f6c9f31cd13fc5bf1931dbc3.zip
qemu-76623d00ae578335f6c9f31cd13fc5bf1931dbc3.tar.gz
qemu-76623d00ae578335f6c9f31cd13fc5bf1931dbc3.tar.bz2
acpi: cpuhp: add cpu._OST handling
it adds HW and AML parts for CPU_Device._OST method handling to allow OSPM reports status of hot-(un)plug operation. And extends QMP command query-acpi-ospm-status to report CPU's OST info along with already reported PC-DIMM devices. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/acpi')
-rw-r--r--include/hw/acpi/cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/acpi/cpu.h b/include/hw/acpi/cpu.h
index f334221..980a83c 100644
--- a/include/hw/acpi/cpu.h
+++ b/include/hw/acpi/cpu.h
@@ -22,6 +22,8 @@ typedef struct AcpiCpuStatus {
uint64_t arch_id;
bool is_inserting;
bool is_removing;
+ uint32_t ost_event;
+ uint32_t ost_status;
} AcpiCpuStatus;
typedef struct CPUHotplugState {
@@ -54,6 +56,8 @@ void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts,
const char *res_root,
const char *event_handler_method);
+void acpi_cpu_ospm_status(CPUHotplugState *cpu_st, ACPIOSTInfoList ***list);
+
extern const VMStateDescription vmstate_cpu_hotplug;
#define VMSTATE_CPU_HOTPLUG(cpuhp, state) \
VMSTATE_STRUCT(cpuhp, state, 1, \