mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-10 21:29:20 +00:00
HV: Set vm state as with VM_POWERING_OFF when RTVM poweroff by itself
We set the vm state as VM_POWERING_OFF when RTVM is trying to poweroff by itself. We will check it when trying to pause vCPUs of RTVM. Only if vm state equal to VM_POWERING_OFF, we take action to pause the vCPUs of RTVM. Otherwise, we will reject the pause request. Tracked-On: #2865 Signed-off-by: Kaige Fu <kaige.fu@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
83d11bbff8
commit
8ad5adced7
@@ -56,6 +56,8 @@
|
||||
|
||||
/* TODO: We may need to get this addr from guest ACPI instead of hardcode here */
|
||||
#define RT_VM_PM1A_CNT_ADDR 0x404U
|
||||
#define RT_VM_PM1A_SLP_TYP 0x1c00U
|
||||
#define RT_VM_PM1A_SLP_EN 0x2000U
|
||||
|
||||
/**
|
||||
* @brief Hypercall
|
||||
|
Reference in New Issue
Block a user