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: projectacrn#1821
Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Shuo Liu 2018-10-17 14:24:38 +08:00 committed by lijinxia
parent 9dacc4a57d
commit 8fa16211f6

View File

@ -210,10 +210,8 @@ int shutdown_vm(struct acrn_vm *vm)
destroy_iommu_domain(vm->iommu); destroy_iommu_domain(vm->iommu);
} }
#ifndef CONFIG_PARTITION_MODE
/* Free vm id */ /* Free vm id */
free_vm_id(vm); free_vm_id(vm);
#endif
vpci_cleanup(vm); vpci_cleanup(vm);