Files
acrn-hypervisor/hypervisor/arch/x86
Zide Chen 0a956c34c7 hv: add a new field cpu_affinity in struct acrn_vm
For post-launched VMs, the configured CPU affinity could be different
from the actual running CPU affinity. This new field acrn_vm->cpu_affinity
recognizes this difference so that it's possible that CREATE_VM
hypercall won't overwrite the configured CPU afifnity.

Change name cpu_affinity_bitmap in acrn_vm_config to cpu_affinity.
This is read-only in run time, never overwritten by acrn-dm.

Remove vm_config->vcpu_num, which means the number of vCPUs of the
configured CPU affinity. This is not to be confused with the actual
running vCPU number: vm->hw.created_vcpus.

Changed get_vm_bsp_pcpu_id() to get_configured_bsp_pcpu_id() for less
confusion.

Tracked-On: #4616
Signed-off-by: Zide Chen <zide.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2020-05-08 11:04:31 +08:00
..
2020-05-08 08:50:13 +08:00
2019-02-22 13:14:36 +08:00
2019-12-13 10:13:09 +08:00
2020-05-08 08:50:13 +08:00
2020-03-09 10:03:01 +08:00
2020-05-08 08:50:13 +08:00
2020-04-16 08:40:17 +08:00
2019-09-11 17:30:24 +08:00