50 requested.
disp = &display;
54 requested.
name =
"GVM";
63 bool ret = mgr.
fd != -1;
77 const uint32_t NUM_TESTS = 1;
79 const std::string test_names[] = {
82 const std::string test_details[] = {
83 "Nvidia manager create mdevs failed.",
86 bool (*tests[])(void) = {
90 uint32_t failures = 0;
92 for (uint32_t i = 0; i < NUM_TESTS; ++i) {
93 bool test_result = tests[i]() == 1;
101 <<
": " << test_details[i]
#define RED_COLOR
Red color.
#define GREEN_COLOR
Green color.
#define RESET_COLOR
Reset color.
void register_nv_mgr_mdevs(struct NvMdev *mgr)
Registers mdevs on the OS.
void create_nv_mgr_mdevs(struct NvMdev *mgr, struct Gpu *limited, size_t gpu_size, struct MDevRequest *requested, size_t mdev_size)
Creates necessary mediated devices on GPUs.
struct NvMdev create_nv_mgr()
Creates a NVIDIA manager object.
void free_nv_mgr(struct NvMdev *mgr)
Deletes a NVIDIA manager object.
Mediated Device Request Structure.
uint32_t map_vid_size
Mappable video size (IN MEGABYTES).
const char * name
Name of the GPU.
uint32_t bar1_len
Bar 1 Length.
uint32_t max_inst
Max number of mediated GPUs.
uint64_t v_dev_id
Virtual device id.
uint32_t fb_res
Frame buffer reserved (IN MEGABYTES).
uint64_t p_dev_id
Physical device id.
uint32_t fb_len
Frame buffer length (IN MEGABYTES).
uint32_t num
Number of the mdev.
const char * gpu_class
GPU Class structure.
struct VirtDisplay * disp
Virtual display structure.
Structure for managing the mediated stack.
int fd
Control file descriptor.
uint32_t frl_config
Frame rate limiter.
uint32_t max_res_y
Max resolution Y.
uint32_t frl_enable
If we use the frame rate limiter.
uint32_t max_res_x
Max resolution X.
uint32_t num_heads
Number of monitor heads.