blob: 630c9608ad2c6d1f8f85afc98f84148a5cc596af [file] [log] [blame] [edit]
/*
* Copyright 2020, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA61_BSD)
*/
/***
* @module guest_vcpu_util.h
* The ARM guest vcpu util interface provides abstractions and helpers for managing libsel4vm vcpus on an ARM platform.
*/
#include <sel4vmmplatsupport/plat/guest_vcpu_util.h>
/***
* @function fdt_generate_plat_vcpu_node(vm, fdt)
* Generate a CPU device node for a given fdt. This taking into account
* the vcpus created for the VM.
* @param {vm_t *} vm A handle to the VM
* @param {void *} fdt FDT blob to append generated device node
* @return 0 for success, -1 for error
*/
int fdt_generate_plat_vcpu_node(vm_t *vm, void *fdt);