acrn-hypervisor/hypervisor/include
Victor Sun 66e0023029 HV: sanitize vm config
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>
2019-01-25 21:30:49 +08:00
..
arch/x86 HV: sanitize vm config 2019-01-25 21:30:49 +08:00
common replace arch_switch_to with pure asm code instead of inline asm 2019-01-25 11:39:47 +08:00
debug security: Increase buffer size to avoid buffer overflow error 2019-01-25 10:24:55 +08:00
dm HV: remove unused mptable info 2019-01-18 11:50:00 +08:00
lib hv: remove the usage of 'atoi()' 2018-12-26 13:50:26 +08:00
public HV: rename the term of vm0 to sos vm 2019-01-21 18:03:31 +08:00
hv_debug.h HV: Added Initial support for SEP/SOCWATCH profiling 2018-10-26 13:39:07 +08:00
hypervisor.h HV: rename the term of vm0 to sos vm 2019-01-21 18:03:31 +08:00