Skip to content

Commit 376fcdd

Browse files
conghuic23wenlingz
authored andcommitted
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>
1 parent 81cbc63 commit 376fcdd

File tree

1 file changed

+2
-0
lines changed
  • hypervisor/arch/x86/guest

1 file changed

+2
-0
lines changed

hypervisor/arch/x86/guest/vm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,8 @@ int32_t shutdown_vm(struct acrn_vm *vm)
564564

565565
vpci_cleanup(vm);
566566

567+
vuart_deinit(vm);
568+
567569
ptdev_release_all_entries(vm);
568570

569571
/* Free iommu */

0 commit comments

Comments
 (0)