mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
hv: Add vuart flag to VM descriptions in partition mode
ACRN in partition mode emulates UART for the VMs directly launced from HV. This patch adds an option to enable/disable vUART for a VM. Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
committed by
lijinxia
parent
9e02ef54c7
commit
7380c167ed
@@ -201,6 +201,11 @@ int create_vm(struct vm_description *vm_desc, struct vm **rtn_vm)
|
||||
vm->vpic = vpic_init(vm);
|
||||
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
/* Create virtual uart */
|
||||
if (vm_desc->vm_vuart) {
|
||||
vm->vuart = vuart_init(vm);
|
||||
}
|
||||
|
||||
vpci_init(vm);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user