mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
HV: decouple legacy vuart interface from acrn_vuart layer
support pci-vuart type, and refine: 1.Rename init_vuart() to init_legacy_vuarts(), only init PIO type. 2.Rename deinit_vuart() to deinit_legacy_vuarts(), only deinit PIO type. 3.Move io handler code out of setup_vuart(), into init_legacy_vuarts() 4.add init_pci_vuart(), deinit_pci_vuart, for one pci vuart vdev. and some change from requirement: 1.Increase MAX_VUART_NUM_PER_VM to 8. Tracked-On: #5394 Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -478,7 +478,7 @@ int32_t create_vm(uint16_t vm_id, uint64_t pcpu_bitmap, struct acrn_vm_config *v
|
||||
enable_iommu();
|
||||
|
||||
/* Create virtual uart;*/
|
||||
init_vuart(vm, vm_config->vuart);
|
||||
init_legacy_vuarts(vm, vm_config->vuart);
|
||||
|
||||
register_reset_port_handler(vm);
|
||||
|
||||
@@ -622,7 +622,7 @@ int32_t shutdown_vm(struct acrn_vm *vm)
|
||||
|
||||
ptirq_remove_configured_intx_remappings(vm);
|
||||
|
||||
deinit_vuart(vm);
|
||||
deinit_legacy_vuarts(vm);
|
||||
|
||||
deinit_vpci(vm);
|
||||
|
||||
|
Reference in New Issue
Block a user