Files
acrn-hypervisor/hypervisor/arch/x86/guest
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-01-14 10:21:23 +08:00
2020-04-16 21:59:03 +08:00
2019-12-02 09:31:12 +08:00
2020-03-25 13:26:58 +08:00
2020-04-16 21:59:03 +08:00
2020-03-25 13:26:58 +08:00
2019-07-19 16:47:06 +08:00
2020-01-07 11:23:32 +08:00
2020-04-17 09:53:59 +08:00
2019-05-07 09:10:13 +08:00
2020-02-25 09:08:14 +08:00