hw/loongarch/virt: add system_powerdown hmp command support
authorSong Gao <gaosong@loongson.cn>
Tue, 10 Jan 2023 03:29:16 +0000 (11:29 +0800)
committerSong Gao <gaosong@loongson.cn>
Fri, 3 Mar 2023 01:37:30 +0000 (09:37 +0800)
commit0d588c4f999699a430b32c563fe9ccc1710b8fd7
tree4f6c295522ceacbac5add653f20714f2e04a0dcf
parentc77432d0efc56273347eb5d8619935052e5ad0a6
hw/loongarch/virt: add system_powerdown hmp command support

For loongarch virt machine, add powerdown notification callback
and send ACPI_POWER_DOWN_STATUS event by acpi ged. Also add
acpi dsdt table for ACPI_POWER_BUTTON_DEVICE device in this
patch.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230303010548.295580-1-gaosong@loongson.cn>
hw/loongarch/acpi-build.c
hw/loongarch/virt.c
include/hw/loongarch/virt.h