diff options
author | Shannon Zhao <shannon.zhao@linaro.org> | 2015-09-11 03:18:05 -0400 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-02-29 13:34:21 -0500 |
commit | 5f0a714a2b63c25ffba5d832773f3ca4f0d02e21 (patch) | |
tree | d6120aa7da15b3ef5ae1ef7d0471eef506b0367e /arch/arm/kvm | |
parent | 2aa36e9840d71710f06b3c29634f044fde8bcbe5 (diff) |
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/kvm')
-rw-r--r-- | arch/arm/kvm/arm.c | 1 |
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) | |||
266 | kvm_mmu_free_memory_caches(vcpu); | 266 | kvm_mmu_free_memory_caches(vcpu); |
267 | kvm_timer_vcpu_terminate(vcpu); | 267 | kvm_timer_vcpu_terminate(vcpu); |
268 | kvm_vgic_vcpu_destroy(vcpu); | 268 | kvm_vgic_vcpu_destroy(vcpu); |
269 | kvm_pmu_vcpu_destroy(vcpu); | ||
269 | kmem_cache_free(kvm_vcpu_cache, vcpu); | 270 | kmem_cache_free(kvm_vcpu_cache, vcpu); |
270 | } | 271 | } |
271 | 272 | ||