Skip to content

Commit 173c044

Browse files
Sebastian Enegregkh
authored andcommitted
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>
1 parent a194467 commit 173c044

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Documentation/devicetree/bindings/misc/qemu,vcpu-stall-detector.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ properties:
2929
Defaults to 10 if unset.
3030
default: 10
3131

32+
interrupts:
33+
maxItems: 1
34+
3235
timeout-sec:
3336
description: |
3437
The stall detector expiration timeout measured in seconds.
@@ -43,9 +46,12 @@ additionalProperties: false
4346

4447
examples:
4548
- |
49+
#include <dt-bindings/interrupt-controller/arm-gic.h>
50+
4651
vmwdt@9030000 {
4752
compatible = "qemu,vcpu-stall-detector";
4853
reg = <0x9030000 0x10000>;
4954
clock-frequency = <10>;
5055
timeout-sec = <8>;
56+
interrupts = <GIC_PPI 15 IRQ_TYPE_EDGE_RISING>;
5157
};

0 commit comments

Comments
 (0)