From 205abb1c6e803c37974febba856027a0db1b5272 Mon Sep 17 00:00:00 2001 From: kharbranth Date: Thu, 5 May 2022 21:22:19 -0400 Subject: [PATCH] Update migration ioctl variable name The name "MIG" creates confusion with NVIDIA's Multi-Instance GPU (MIG) technology, thus a rename from "MIG" to "MIGRATION" is prudent. Signed-off-by: kharbranth --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index af1e027..59c26d7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,7 +76,7 @@ const OP_READ_PCI_ID: u32 = 0x20801801; const OP_READ_VGPU_CFG: u32 = 0xa0820102; /// `result` is a pointer to `bool`. -const OP_READ_VGPU_MIG_CAP: u32 = 0xa0810112; +const OP_READ_VGPU_MIGRATION_CAP: u32 = 0xa0810112; /// `nvidia-vgpu-mgr` expects this value for a vGPU capable GPU. const DEV_TYPE_VGPU_CAPABLE: u32 = 3; @@ -344,7 +344,7 @@ 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_MIG_CAP if CONFIG.unlock_migration => { + OP_READ_VGPU_MIGRATION_CAP if CONFIG.unlock_migration => { let mig_enabled: *mut bool = io_data.result.cast(); *mig_enabled = true;