arm.c (abc7220b2233df9b13d8e0e312fb6f31e5402d7d) arm.c (d7eec2360e389cc877a76c2b098f7b745007d2b2)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2012 - Virtual Open Systems and Columbia University
4 * Author: Christoffer Dall <c.dall@virtualopensystems.com>
5 */
6
7#include <linux/bug.h>
8#include <linux/cpu_pm.h>

--- 131 unchanged lines hidden (view full) ---

140/**
141 * kvm_arch_destroy_vm - destroy the VM data structure
142 * @kvm: pointer to the KVM struct
143 */
144void kvm_arch_destroy_vm(struct kvm *kvm)
145{
146 int i;
147
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2012 - Virtual Open Systems and Columbia University
4 * Author: Christoffer Dall <c.dall@virtualopensystems.com>
5 */
6
7#include <linux/bug.h>
8#include <linux/cpu_pm.h>

--- 131 unchanged lines hidden (view full) ---

140/**
141 * kvm_arch_destroy_vm - destroy the VM data structure
142 * @kvm: pointer to the KVM struct
143 */
144void kvm_arch_destroy_vm(struct kvm *kvm)
145{
146 int i;
147
148 bitmap_free(kvm->arch.pmu_filter);
149
148 kvm_vgic_destroy(kvm);
149
150 for (i = 0; i < KVM_MAX_VCPUS; ++i) {
151 if (kvm->vcpus[i]) {
152 kvm_vcpu_destroy(kvm->vcpus[i]);
153 kvm->vcpus[i] = NULL;
154 }
155 }

--- 1545 unchanged lines hidden ---
150 kvm_vgic_destroy(kvm);
151
152 for (i = 0; i < KVM_MAX_VCPUS; ++i) {
153 if (kvm->vcpus[i]) {
154 kvm_vcpu_destroy(kvm->vcpus[i]);
155 kvm->vcpus[i] = NULL;
156 }
157 }

--- 1545 unchanged lines hidden ---