1 // © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
2 //
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #if (defined(UNIT_TESTS) && UNIT_TESTS) || defined(ROOTVM_INIT) ||             \
6 	defined(UEFITZT)
7 
8 // Get the root VM's partition.
9 //
10 // This partition is used for constructing the root VM, and is the initial owner
11 // of every resource that is not used internally by the hypervisor.
12 //
13 // Do not add new calls to this function, except to donate memory to the root
14 // VM. Callers to partition_alloc() and related functions should always use a
15 // partition obtained either from an explicit partition capability, or from the
16 // object header of some first-class object that owns the allocation.
17 partition_t *
18 partition_get_root(void);
19 
20 #endif
21