HV: vuart: add vuart_deinit during vm shutdown

Add vuart_deinit to vm shutdown so that the vuart resource can be
reset, and when the Guest VM restart, it could have right state.

Tracked-On: #2987
Signed-off-by: Conghui Chen <conghui.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Conghui Chen 2019-05-24 01:15:27 +08:00 committed by wenlingz
parent 81cbc63646
commit 376fcddff8

View File

@ -564,6 +564,8 @@ int32_t shutdown_vm(struct acrn_vm *vm)
vpci_cleanup(vm);
vuart_deinit(vm);
ptdev_release_all_entries(vm);
/* Free iommu */