summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorShannon Zhao2015-09-11 09:18:05 +0200
committerMarc Zyngier2016-02-29 19:34:21 +0100
commit5f0a714a2b63c25ffba5d832773f3ca4f0d02e21 (patch)
treed6120aa7da15b3ef5ae1ef7d0471eef506b0367e /arch/arm
parentarm64: KVM: Reset PMU state when resetting vcpu (diff)
downloadkernel-qcow2-linux-5f0a714a2b63c25ffba5d832773f3ca4f0d02e21.tar.gz
kernel-qcow2-linux-5f0a714a2b63c25ffba5d832773f3ca4f0d02e21.tar.xz
kernel-qcow2-linux-5f0a714a2b63c25ffba5d832773f3ca4f0d02e21.zip
arm64: KVM: Free perf event of PMU when destroying vcpu
When KVM frees VCPU, it needs to free the perf_event of PMU. Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org> Reviewed-by: Marc Zyngier <marc.zyngier@arm.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/kvm/arm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c
index c5e959187abd..9d133df2da53 100644
--- a/arch/arm/kvm/arm.c
+++ b/arch/arm/kvm/arm.c
@@ -266,6 +266,7 @@ void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu)
kvm_mmu_free_memory_caches(vcpu);
kvm_timer_vcpu_terminate(vcpu);
kvm_vgic_vcpu_destroy(vcpu);
+ kvm_pmu_vcpu_destroy(vcpu);
kmem_cache_free(kvm_vcpu_cache, vcpu);
}