mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
hv:check pcpu numbers during init_pcpu_pre
it will panic if phys_cpu_num > CONFIG_MAX_PCPU_NUM during init_pcpu_pre,after that no need to check it again. Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
@@ -632,6 +632,9 @@ static inline void clac(void)
|
||||
asm volatile ("clac" : : : "memory");
|
||||
}
|
||||
|
||||
/*
|
||||
* @post return <= CONFIG_MAX_PCPU_NUM
|
||||
*/
|
||||
uint16_t get_pcpu_nums(void);
|
||||
bool is_pcpu_active(uint16_t pcpu_id);
|
||||
uint64_t get_active_pcpu_bitmap(void);
|
||||
|
Reference in New Issue
Block a user