mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-17 15:44:32 +00:00
Move reset_vm to common scope and remove unused reset_mode. The reset_mode in x86 reset_vm code is simply used as an if condition on whether the prepare_os_image should be executed. The entire if body will never be true as we don't support resetting Service VM without resetting ACRN hypervisor. To reset Service VM, the only way is through a platform reset. Therefore the prepare_os_image action will never be called. Delete this action. Once the if condition and prepare_os_image action is deleted, the input parameter "mode" is useless. Delete that too. The reset_vm API in ACRN is simply a "warm reset". It does not need to take input. 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>