GVM User Suite
User tools for the GVM open source project.
Functions
manager.h File Reference
#include <gpu/nvidia/resources.h>
#include <gvm/vm_mgr.h>
Include dependency graph for manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct VmMgr init_nv_vm_mgr (struct NvMdev *mdevs)
 Initializes a NVIDIA VM manager to connect to a VM. More...
 
void handle_vm_start (struct VmMgr *mgr, struct NvMdev *mdev_mgr)
 Handles a start request. More...
 
void start_vm (struct VmMgr *mgr, struct NvMdev *mdev_mgr)
 Connects the VM to the user program. More...
 

Function Documentation

◆ handle_vm_start()

void handle_vm_start ( struct VmMgr mgr,
struct NvMdev mdev_mgr 
)

Handles a start request.

Handles a VM start request.

Side Effect:
VM Side Effect: Starts a VM.
Parameters
mgr- Manager for the VM management system.
mdev_mgr- Manager for the mediated devices.
Returns
Only performed for the side effects.
Todo:
Proper logging.

Definition at line 119 of file manager.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_nv_vm_mgr()

struct VmMgr init_nv_vm_mgr ( struct NvMdev mgr)

Initializes a NVIDIA VM manager to connect to a VM.

This code initializes a NVIDIA VM manager object that will help us in providing a VM manager command.

Side Effect:
RM Side Effect: Creates a start and a bind operation to the VM object.
Parameters
mdevs- Root for all mdevs.
Returns
A VM manager object.
Todo:
Proper logging.

Definition at line 53 of file manager.c.

Here is the caller graph for this function:

◆ start_vm()

void start_vm ( struct VmMgr mgr,
struct NvMdev mdev_mgr 
)

Connects the VM to the user program.

Tells the kernel to start the VM.

Side Effect:
VM Side Effect: Starts a VM.
Parameters
mgr- Manager for the VM management system.
mdev_mgr- Manager for the mediated devices.
Returns
Only performed for the side effects.
Todo:
Proper logging.

Definition at line 143 of file manager.c.

Here is the call graph for this function:
Here is the caller graph for this function: