summaryrefslogtreecommitdiff
path: root/drivers/watchdog/watchdog_pretimeout.h
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2023-11-04 02:05:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-26 02:35:48 +0300
commit7c7ddf45868a1cece03eaceb94a8e0ba0d4eaad1 (patch)
tree7c62ea49353ecbdd4668f0618ab6262ed742a4f6 /drivers/watchdog/watchdog_pretimeout.h
parent57bbd59ae013558704962c493177735fd328799b (diff)
downloadlinux-7c7ddf45868a1cece03eaceb94a8e0ba0d4eaad1.tar.xz
KVM: x86/pmu: Reset the PMU, i.e. stop counters, before refreshing
commit 1647b52757d59131fe30cf73fa36fac834d4367f upstream. Stop all counters and release all perf events before refreshing the vPMU, i.e. before reconfiguring the vPMU to respond to changes in the vCPU model. Clear need_cleanup in kvm_pmu_reset() as well so that KVM doesn't prematurely stop counters, e.g. if KVM enters the guest and enables counters before the vCPU is scheduled out. Cc: stable@vger.kernel.org Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Link: https://lore.kernel.org/r/20231103230541.352265-3-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/watchdog/watchdog_pretimeout.h')
0 files changed, 0 insertions, 0 deletions