Skip to content

Commit 8fa1621

Browse files
Shuo Liulijinxia
authored andcommitted
hv: partition mode also needs free vm id when shutdown vm
Even in partition mode, we also need to clear vmid in vmid_bitmap to indicate the VM is not present. Tracked-On: #1821 Signed-off-by: Shuo Liu <shuo.a.liu@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
1 parent 9dacc4a commit 8fa1621

File tree

1 file changed

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

1 file changed

+0
-2
lines changed

hypervisor/arch/x86/guest/vm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,8 @@ int shutdown_vm(struct acrn_vm *vm)
210210
destroy_iommu_domain(vm->iommu);
211211
}
212212

213-
#ifndef CONFIG_PARTITION_MODE
214213
/* Free vm id */
215214
free_vm_id(vm);
216-
#endif
217215

218216
vpci_cleanup(vm);
219217

0 commit comments

Comments
 (0)