mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 18:27:18 +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:
@@ -24,6 +24,18 @@ bool is_hypercall_from_ring0(void);
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief offline vcpu from SOS
|
||||
*
|
||||
* The function offline specific vcpu from SOS.
|
||||
*
|
||||
* @param vm Pointer to VM data structure
|
||||
* @param lapicid lapic id of the vcpu which wants to offline
|
||||
*
|
||||
* @return 0 on success, non-zero on error.
|
||||
*/
|
||||
int32_t hcall_sos_offline_cpu(struct vm *vm, uint64_t lapicid);
|
||||
|
||||
/**
|
||||
* @brief Get hypervisor api version
|
||||
*
|
||||
|
Reference in New Issue
Block a user