GVM User Suite
User tools for the GVM open source project.
manager.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 2666680 Ontario Inc.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  */
19 #ifndef GVM_NVIDIA_MANAGER_H
20 #define GVM_NVIDIA_MANAGER_H
21 
22 #include <gpu/nvidia/resources.h>
23 #include <gvm/vm_mgr.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
39 struct VmMgr init_nv_vm_mgr(struct NvMdev* mdevs);
40 
51 void handle_vm_start(struct VmMgr* mgr, struct NvMdev* mdev_mgr);
52 
63 void start_vm(struct VmMgr* mgr, struct NvMdev* mdev_mgr);
64 
65 #ifdef __cplusplus
66 };
67 #endif
68 
69 #endif
void handle_vm_start(struct VmMgr *mgr, struct NvMdev *mdev_mgr)
Handles a start request.
Definition: manager.c:119
void start_vm(struct VmMgr *mgr, struct NvMdev *mdev_mgr)
Connects the VM to the user program.
Definition: manager.c:143
struct VmMgr init_nv_vm_mgr(struct NvMdev *mdevs)
Initializes a NVIDIA VM manager to connect to a VM.
Definition: manager.c:86
Structure for managing the mediated stack.
Definition: resources.h:74
Structure for VM management.
Definition: vm_mgr.h:33