acrn-hypervisor/hypervisor/include
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
..
arch/x86 hv: add a new field cpu_affinity in struct acrn_vm 2020-05-08 11:04:31 +08:00
common hv: ptdev: minor refine about ptirq_build_physical_msi 2020-05-06 11:51:11 +08:00
debug HV: correct ept page array usage 2020-03-12 14:56:34 +08:00
dm hv: vioapic: minor refine about vioapic_init 2020-04-24 15:35:38 +08:00
hw hv: vpci: handle the quirk part for pass through pci device cfg access in dm 2020-03-20 10:08:43 +08:00
lib hv: list: rename list_entry to container_of 2020-03-31 10:57:47 +08:00
public hv: dynamically configure CPU affinity through hypercall 2020-04-23 09:38:54 +08:00