Skip to main content

krun_set_gpu_options2

Function krun_set_gpu_options2 

Source
pub unsafe extern "C" fn krun_set_gpu_options2(
    ctx_id: u32,
    virgl_flags: u32,
    shm_size: u64,
) -> i32
Expand description

Enables and configures a virtio-gpu device. This variant allows specifying the size of the host window (acting as vRAM in the guest).

Arguments: “ctx_id” - the configuration context ID. “virgl_flags” - flags to pass to virglrenderer. “shm_size” - size of the SHM host window in bytes.

Returns: Zero on success or a negative error number on failure.