acrn-hypervisor/hypervisor/include/common
Mingqiang Chi 7e882dd5cb hv: remove UUID
With current arch design the UUID is used to identify ACRN VMs,
all VM configurations must be deployed with given UUIDs at build time.
For post-launched VMs, end user must use UUID as acrn-dm parameter
to launch specified user VM. This is not friendly for end users
that they have to look up the pre-configured UUID before launching VM,
and then can only launch the VM which its UUID in the pre-configured UUID list,
otherwise the launch will fail.Another side, VM name is much straight
forward for end user to identify VMs, whereas the VM name defined
in launch script has not been passed to hypervisor VM configuration
so it is not consistent with the VM name when user list VM
in hypervisor shell, this would confuse user a lot.

This patch will resolve these issues by removing UUID as VM identifier
and use VM name instead:
1. Hypervisor will check the VM name duplication during VM creation time
   to make sure the VM name is unique.
2. If the VM name passed from acrn-dm matches one of pre-configured
   VM configurations, the corresponding VM will be launched,
   we call it static configured VM.
   If there is no matching found, hypervisor will try to allocate one unused
   VM configuration slot for this VM with given VM name and get it run
   if VM number does not reach CONFIG_MAX_VM_NUM,
   we will call it dynamic configured VM.
3. For dynamic configured VMs, we need a guest flag to identify them
   because the VM configuration need to be destroyed
   when it is shutdown or creation failed.

Tracked-On: #6685
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Victor Sun<victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2021-11-10 14:37:47 +08:00
..
delay.h hv/mod_timer: separate delay functions from the timer module 2021-05-18 16:43:28 +08:00
efi_mmap.h hv: set default MAX_EFI_MMAP_ENTRIES to 350 2021-11-08 09:49:24 +08:00
event.h hv: Change sched_event structure to resolve data race in event handling 2021-08-20 08:11:40 +08:00
hypercall.h ACRN: hv: Unify terminology for user vm 2021-11-02 10:00:55 +08:00
irq.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
ptdev.h HV: move the ve820 GPU OpRegion address 2021-11-08 13:13:14 +08:00
schedule.h hv: add priority based scheduler 2021-09-24 09:32:18 +08:00
softirq.h hv: remove unused MACROs 2018-09-18 09:43:43 +08:00
ticks.h doc: update timer HLD doc after modularization 2021-06-09 17:11:25 -04:00
timer.h HV: treewide: fix violations of coding guideline C-FN-09 2021-11-04 18:15:47 +08:00