GVM User Suite
User tools for the GVM open source project.
init.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_INIT_H
20 #define GVM_NVIDIA_INIT_H
21 
22 #include <utils/types.h>
23 
24 #include <stdint.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
35 struct RmVmStartInfo {
36  struct UUID uuid;
37  char config[1024];
38  uint32_t qemu_pid;
39  uint32_t pci_id;
40  uint16_t mdev_id;
41  uint32_t pci_bdf;
42 };
43 
49  struct UUID mdev;
50  struct UUID vm;
51  char name[128];
52  uint32_t status;
53 };
54 
55 #ifdef __cplusplus
56 };
57 #endif
58 
59 #endif
Notifies the start of a VM.
Definition: init.h:48
uint32_t status
Status for the notified start.
Definition: init.h:52
char name[128]
VM Name.
Definition: init.h:51
struct UUID vm
VM UUID.
Definition: init.h:50
struct UUID mdev
MDEV UUID.
Definition: init.h:49
Reverse engineered start vm info structure.
Definition: init.h:35
uint32_t pci_bdf
BDF PCI.
Definition: init.h:41
char config[1024]
Config for starting the MDEV.
Definition: init.h:37
uint32_t qemu_pid
QEMU PID.
Definition: init.h:38
struct UUID uuid
UUID for the MDEV.
Definition: init.h:36
uint32_t pci_id
PCI id.
Definition: init.h:39
uint16_t mdev_id
MDEV id.
Definition: init.h:40
UUID Data structure.
Definition: types.h:32