Files
acrn-hypervisor/hypervisor/include/arch/x86
Shuo A Liu 1c526e6d16 hv: use vcpu_affinity[] in vm_config to support vcpu assignment
Add this vcpu_affinity[] for each VM to indicate the assignment policy.
With it, pcpu_bitmap is not needed, so remove it from vm_config.
Instead, vcpu_affinity is a must for each VM.

This patch also add some sanitize check of vcpu_affinity[]. Here are
some rules:
  1) only one bit can be set for each vcpu_affinity of vcpu.
  2) two vcpus in same VM cannot be set with same vcpu_affinity.
  3) vcpu_affinity cannot be set to the pcpu which used by pre-launched VM.

v4: config SDC with CONFIG_MAX_KATA_VM_NUM
v5: config SDC with CONFIG_MAX_PCPU_NUM

Tracked-On: #3663
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2019-09-24 11:58:45 +08:00
..
2019-09-05 09:59:13 +08:00
2019-09-05 09:58:16 +08:00
2019-09-11 17:30:24 +08:00
2019-02-22 13:14:36 +08:00
2019-01-21 13:49:54 +08:00
2019-09-05 16:32:30 +08:00
2019-08-22 14:13:15 +08:00
2019-09-05 09:58:47 +08:00
2019-09-05 09:58:47 +08:00
2019-03-15 14:09:56 +08:00
2019-03-22 08:38:13 +08:00
2019-09-16 14:51:36 +08:00
2019-05-07 09:10:13 +08:00