qcom: hyp_core_ctl: Add support for thermal management
Currently we are honoring the reservation by isolating CPUs. An offline
CPU is considered as reserved since this guest can't use it. However a
CPU can be isolated/offlined by thermal and we shouldn't reserve such
CPU for other guest. Find a replacement CPU and reserve it by isolating it.
When the original CPU is unthrottled by thermal, restore the reservation.
We should also take thermal into consideration when reservation is
not active. i.e hypervisor should be notified about the thermal
condition of a physical CPU which could be used for the other guests.
Handle this by finding a replacement CPU for the originally assigned
CPU which is throttled by thermal.
Change-Id: I4a664353faee13e1b8c7a14047b5e6d841fdf0d4
Signed-off-by:
Pavankumar Kondeti <pkondeti@codeaurora.org>
Loading
Please register or sign in to comment