mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 01:30:13 +00:00
In function start_cpus, we allocated memory under 1M when preparing AP trampoline code. With S3 feature enabled, start_cpus is called every time after ACRN resume from S3 which leaks the allocated memory for AP trampoline code. To avoid memory leak, move the AP trampoline preparing function out of start_cpus to make sure the memory for AP trampoline is only allocated one time when system boot. Tracked-On: #1156 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Reviewed-by: Zide Chen <zide.chen@intel.com>
20 KiB
20 KiB