summaryrefslogtreecommitdiff
path: root/Documentation/core-api/kho/bindings/kho.yaml
blob: 11e8ab7b219d99997d997c6f5050f9d696f3ed8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
title: Kexec HandOver (KHO) root tree

maintainers:
  - Mike Rapoport <rppt@kernel.org>
  - Changyuan Lyu <changyuanl@google.com>

description: |
  System memory preserved by KHO across kexec.

properties:
  compatible:
    enum:
      - kho-v1

  preserved-memory-map:
    description: |
      physical address (u64) of an in-memory structure describing all preserved
      folios and memory ranges.

patternProperties:
  "$[0-9a-f_]+^":
    $ref: sub-fdt.yaml#
    description: physical address of a KHO user's own FDT.

required:
  - compatible
  - preserved-memory-map

additionalProperties: false

examples:
  - |
    kho {
        compatible = "kho-v1";
        preserved-memory-map = <0xf0be16 0x1000000>;

        memblock {
                fdt = <0x80cc16 0x1000000>;
        };
    };