Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: vcpu_stall_detector: Add a PPI interrupt to the virtual device

The vcpu stall detector allows the host to monitor the availability of a
guest VM. Introduce a PPI interrupt which can be injected from the host
into the virtual gic to let the guest reboot itself.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Sebastian Ene <sebastianene@google.com>
Link: https://lore.kernel.org/r/20240703153732.3214238-2-sebastianene@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sebastian Ene and committed by
Greg Kroah-Hartman
173c0447 a1944676

+6
+6
Documentation/devicetree/bindings/misc/qemu,vcpu-stall-detector.yaml
··· 29 29 Defaults to 10 if unset. 30 30 default: 10 31 31 32 + interrupts: 33 + maxItems: 1 34 + 32 35 timeout-sec: 33 36 description: | 34 37 The stall detector expiration timeout measured in seconds. ··· 46 43 47 44 examples: 48 45 - | 46 + #include <dt-bindings/interrupt-controller/arm-gic.h> 47 + 49 48 vmwdt@9030000 { 50 49 compatible = "qemu,vcpu-stall-detector"; 51 50 reg = <0x9030000 0x10000>; 52 51 clock-frequency = <10>; 53 52 timeout-sec = <8>; 53 + interrupts = <GIC_PPI 15 IRQ_TYPE_EDGE_RISING>; 54 54 };