• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/firmware/gunyah-cma-mem.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Contiguous memory allocator for Virtual Machines
8
9maintainers:
10  - Prakruthi Deepak Heragu <quic_pheragu@quicinc.com>
11  - Elliot Berman <quic_eberman@quicinc.com>
12
13description: |+
14  gunyah-cma-mem is a CMA memory manager that allows VMMs to use
15  contiguous memory to backup Virtual Machines running on Gunyah. These
16  regions are pre-defined by the firmware to have special attributes
17  like memory encryption.
18
19properties:
20  compatible:
21      - const: gunyah-cma-vm-mem
22
23  memory-region:
24    $ref: '/schemas/types.yaml#/definitions/phandle'
25    items:
26      - description: |
27          Describes the specific reserved memory region that this allocator
28          will allocate memory from for a Virtual Machine. Refer to
29          Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
30          for more information.
31
32  memory-region-names:
33    $ref: /schemas/types.yaml#/definitions/string-array
34    items:
35      - description: Name of the memory-region to be used by VMM for operation
36
37required:
38  - compatible
39  - memory-region
40  - memory-region-names
41
42example:
43  - |
44    gunyah-cma-mem {
45	compatible = "gunyah-cma-vm-mem";
46	memory-region = <&trust_ui_vm_mem &oem_vm_mem>;
47	memory-region-names = "trustedvm_cma" , "oemvm_cma";
48    };
49
50