Skip to content

watchdog: kvm: disable hard lockup detection by default

Andrew Jones kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3watchdog: fix print-once on enablekernel/watchdog.c+3 -00 replies
2/3watchdog: control hard lockup detection defaultinclude/linux/nmi.h kernel/watchdog.c+52 -212 replies
3/3kvm: ensure hard lockup detection is disabled by defaultarch/x86/kernel/kvm.c+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] watchdog: kvm: disable hard lockup detection by default

It's not recommended for KVM guests to enable hard lockup detection, as false positives may be easily triggered by, for example, vcpu overcommit. However any kernel compiled with HARDLOCKUP_DETECTOR that detects a PMU on boot will by default enable hard lockup detection. This series gives a kernel a mechanism to opt out of this default. Users can still force hard lockup detection on using the kernel command line option 'nmi_watchdog=1'.

The first patch is a watchdog fix, and can be taken separately. The next patch provides the default opt out mechanism, and the final patch applies it to kvm guests.

Thanks in advance for reviews,
drew

Ulrich Obergfell (3):
watchdog: fix print-once on enable
watchdog: control hard lockup detection default
kvm: ensure hard lockup detection is disabled by default

 arch/x86/kernel/kvm.c |  8 ++++++++
 include/linux/nmi.h   |  9 +++++++++
 kernel/watchdog.c     | 48 ++++++++++++++++++++++++++++++++++++++++++++++--
 3 files changed, 63 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.3