[PATCH v1 8/8] KVM/x86/vPMU: return the counters to host if guest is torn down

2018-11-01 Thread Wei Wang
Return the assigned counters to host in the case the guest is torn down unexpectedly. Signed-off-by: Wei Wang Cc: Andi Kleen Cc: Paolo Bonzini Cc: Peter Zijlstra --- arch/x86/kvm/pmu_intel.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/pmu_intel.c

[PATCH v1 8/8] KVM/x86/vPMU: return the counters to host if guest is torn down

2018-11-01 Thread Wei Wang
Return the assigned counters to host in the case the guest is torn down unexpectedly. Signed-off-by: Wei Wang Cc: Andi Kleen Cc: Paolo Bonzini Cc: Peter Zijlstra --- arch/x86/kvm/pmu_intel.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/pmu_intel.c