mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-18 09:06:06 +00:00
prepare_os_image should not touch vcpu internal state. Move this operation to arch_vm_prepare_bsp. Since arch_vm_prepare_bsp now changes vcpu registers, this action also affects the logic of resume_vm_from_s3. Refactor resume_vm_from_s3 to avoid direct call to start_vm. 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>