acrn-hypervisor/hypervisor/common
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
..
event.c hv: reset vcpu events in reset_vcpu 2020-02-23 16:27:57 +08:00
hv_main.c hv: HLT emulation in hypervisor 2020-01-07 11:23:32 +08:00
hypercall.c hv: don't overwrite the statically configured vm_configs[] in hypercall 2020-04-29 15:19:35 +08:00
ptdev.c hv: rename BOOT_CPU_ID to BSP_CPU_ID 2020-02-25 09:08:14 +08:00
sched_bvt.c hv: sched_bvt: add tick hanlder 2020-02-25 09:11:32 +08:00
sched_iorr.c hv: sched_iorr: add some interfaces implementation of sched_iorr 2019-12-11 09:31:39 +08:00
sched_noop.c hv: sched: decouple scheduler from schedule framework 2019-10-25 13:00:21 +08:00
schedule.c hv: sched_bvt: add BVT scheduler 2020-02-25 09:11:32 +08:00
softirq.c softirq: move softirq from hv_main to interrupt context 2019-07-22 09:55:06 +08:00
trusty_hypercall.c hv: rename the ACRN_DBG_XXX 2020-01-14 10:21:23 +08:00
vm_load.c HV: init efi info with multiboot2 2020-02-26 09:24:16 +08:00