diff options
| author | Shameer Kolothum | 2019-09-18 15:06:29 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2019-10-05 23:12:09 +0200 |
| commit | c345680cb46f240f62cf2356503d8783033c8180 (patch) | |
| tree | c50abf4aba7646296803cee95c870bdc45ca8593 /include/hw/arm | |
| parent | hw/arm/virt-acpi-build: Add PC-DIMM in SRAT (diff) | |
| download | qemu-c345680cb46f240f62cf2356503d8783033c8180.tar.gz qemu-c345680cb46f240f62cf2356503d8783033c8180.tar.xz qemu-c345680cb46f240f62cf2356503d8783033c8180.zip | |
hw/arm: Factor out powerdown notifier from GPIO
This is in preparation of using GED device for
system_powerdown event. Make the powerdown notifier
registration independent of create_gpio() fn.
Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20190918130633.4872-8-shameerali.kolothum.thodi@huawei.com>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/arm')
| -rw-r--r-- | include/hw/arm/virt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h index 577ee49b4b..0b41083e9d 100644 --- a/include/hw/arm/virt.h +++ b/include/hw/arm/virt.h @@ -137,6 +137,7 @@ typedef struct { int psci_conduit; hwaddr highest_gpa; DeviceState *acpi_dev; + Notifier powerdown_notifier; } VirtMachineState; #define VIRT_ECAM_ID(high) (high ? VIRT_HIGH_PCIE_ECAM : VIRT_PCIE_ECAM) |
