Files
acrn-hypervisor/hypervisor/arch/x86
Yin Fengwei bca43b5324 hv: avoid memory leak in trampoline code preparing
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>
2018-09-11 13:00:54 +08:00
..
2018-09-03 09:32:49 +08:00
2018-09-03 09:32:49 +08:00
2018-09-11 10:47:34 +08:00
2018-08-31 11:18:26 +08:00
2018-08-23 08:54:54 +08:00
2018-09-03 09:32:49 +08:00
2018-08-16 16:24:13 +08:00