mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-05 05:32:05 +00:00
Add a API to sanitize vm_configs[] array, in this API, we will do sanity check for VM configurations and refill some fields in vm_configs[]. If sanity check is failed, the HV would reject to boot. About pcpu_bitmap of SOS_VM: We should not hard code pcpu_bitmap for SOS_VM, this is not convenient for unconfigured boards. The pcpu_bitmap follows a very simple rule: All physical CPUs except ocuppied by Pre-launched VMs are all belong to SOS_VM. In this way, the pcpu_bitmap of a SOS_VM is decided by pcpu_bitmap status in PRE_LAUNCHED_VMs. To get the correct pcpu_bitmap of SOS_VM, We need to setup another rule, that the vm_configs[] array should follow the order of PRE_LAUNCHED_VM - SOS_VM strictly. With this patch enabled, the pcpu_bitmap field of sos vm config is not needed to configure; Tracked-On: #2291 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> |
||
---|---|---|
.. | ||
x86 |