From 8fa16211f67d898bd1c45183e6e0f1649d41d76a Mon Sep 17 00:00:00 2001 From: Shuo Liu Date: Wed, 17 Oct 2018 14:24:38 +0800 Subject: [PATCH] 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 Acked-by: Anthony Xu --- hypervisor/arch/x86/guest/vm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hypervisor/arch/x86/guest/vm.c b/hypervisor/arch/x86/guest/vm.c index 51287793e..2a256e0f1 100644 --- a/hypervisor/arch/x86/guest/vm.c +++ b/hypervisor/arch/x86/guest/vm.c @@ -210,10 +210,8 @@ int shutdown_vm(struct acrn_vm *vm) destroy_iommu_domain(vm->iommu); } -#ifndef CONFIG_PARTITION_MODE /* Free vm id */ free_vm_id(vm); -#endif vpci_cleanup(vm);