mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-06 11:20:32 +00:00
add hypercall hc_sos_offline_cpu support
SOS boot with all physicall cpus, before running UOS, it should free CPU resource by offline not used cpus - first do standard cpu offline flow - then call hcall_sos_offline_cpu hypercall to release cpu resource really Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -38,6 +38,9 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)
|
||||
|
||||
/* Dispatch the hypercall handler */
|
||||
switch (hypcall_id) {
|
||||
case HC_SOS_OFFLINE_CPU:
|
||||
ret = hcall_sos_offline_cpu(vm, param1);
|
||||
break;
|
||||
case HC_GET_API_VERSION:
|
||||
#ifdef CONFIG_VM0_DESC
|
||||
/* vm0 will call HC_GET_API_VERSION as first hypercall, fixup
|
||||
|
Reference in New Issue
Block a user