arm64: KVM: Free perf event of PMU when destroying vcpu
authorShannon Zhao <shannon.zhao@linaro.org>
Fri, 11 Sep 2015 07:18:05 +0000 (15:18 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:21 +0000 (18:34 +0000)
commit5f0a714a2b63c25ffba5d832773f3ca4f0d02e21
treed6120aa7da15b3ef5ae1ef7d0471eef506b0367e
parent2aa36e9840d71710f06b3c29634f044fde8bcbe5
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>
arch/arm/kvm/arm.c
include/kvm/arm_pmu.h
virt/kvm/arm/pmu.c