diff --git a/src/config.rs b/src/config.rs index 09b4ea1..696f8ce 100644 --- a/src/config.rs +++ b/src/config.rs @@ -7,6 +7,7 @@ impl Defaults { const fn unlock() -> bool { true } + #[inline] const fn unlock_migration() -> bool { false diff --git a/src/lib.rs b/src/lib.rs index e606509..a185c46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -347,16 +347,15 @@ pub unsafe extern "C" fn ioctl(fd: RawFd, request: c_ulong, argp: *mut c_void) - // Set device type to vGPU capable. *dev_type_ptr = DEV_TYPE_VGPU_CAPABLE; - }, + } OP_READ_VGPU_MIGRATION_CAP if CONFIG.unlock_migration => { let mig_enabled: *mut bool = io_data.result.cast(); *mig_enabled = true; - }, + } _ => {} } - if io_data.status == STATUS_OK { match io_data.op_type { OP_READ_VGPU_CFG => {