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);