Files
acrn-hypervisor/hypervisor/include/common/host_pm.h
Yifan Liu 43a09e86a7 hv: host_pm: Move two common APIs to common scope
Move shutdown_system to common (and rename to shutdown_host)
Move reset_host to common

Tracked-On: #8830
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
Reviewed-by: Fei Li <fei1.li@intel.com>
Acked-by: Wang Yu1 <yu1.wang@intel.com>
2025-10-30 13:30:32 +08:00

26 lines
490 B
C

/*
* Copyright (C) 2018-2025 Intel Corporation.
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef HOST_PM_H
#define HOST_PM_H
#include <asm/host_pm.h>
#include <logmsg.h>
void arch_shutdown_host(void);
void arch_reset_host(bool warm);
static inline void shutdown_host(void) {
pr_info("Shutting down ACRN");
arch_shutdown_host();
}
static inline void reset_host(bool warm) {
pr_info("%s resetting ACRN", warm ? "Warm" : "Cold");
arch_reset_host(warm);
}
#endif /* HOST_PM_H */