Files
acrn-hypervisor/hypervisor/arch/x86
Zide Chen c390ab01cd hv: don't overwrite the statically configured vm_configs[] in hypercall
The statically configured vm_configs[].cpu_affinity_bitmap should remain
intact during the life cycle of the SOS, otherwise user can't destroy
and create the same VM with different CPU affinity. For example:

- Initially vm_configs[1].cpu_affinity_bitmap is set to 0xF: pCPU 0/1/2/3.
- VM1 is created on pCPU1 and pCPU2 and vm_configs[1].cpu_affinity_bitmap
  is overwritten as 0x6.
- VM1 is destroyed.
- Now VM1 can't be launched again on pCPU0 or pCPU3.

This patch fixes this by saving the static VM configuration before the
create_vm hypercall and restore it when the post-launched VM is shutting
down.

Tracked-On: #4616
Signed-off-by: Zide Chen <zide.chen@intel.com>
2020-04-29 15:19:35 +08:00
..
2020-04-16 13:47:23 +08:00
2019-12-13 10:13:09 +08:00
2020-04-16 13:47:23 +08:00
2020-04-20 23:58:58 +08:00
2020-04-23 16:53:31 +08:00
2020-03-09 10:03:01 +08:00
2020-03-04 17:33:50 +08:00
2020-02-25 09:08:14 +08:00