mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 12:12:16 +00:00
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:
parent
9dacc4a57d
commit
8fa16211f6
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user