blob: 73c3dddc748046d24ffe096d8b04605f69831b8f [file] [log] [blame] [edit]
/*
* Copyright 2019, 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)
*/
#pragma once
/**
* Install a VMM service into the VM
* Effectively a cap copy into the CNode of the VM. This allows the VM to
* make a seL4 call
* @param[in] vm The VM to install the service into
* @param[in] service A capability for VM
* @param[in] index The index at which to install the cap
* @param[in] badge The badge to assign to the cap.
* @return 0 on success
*/
int vmm_install_service(vm_t *vm, seL4_CPtr service, int index, uint32_t badge);