This commit is contained in:
Matt Bilker 2022-05-08 04:48:12 +00:00
parent 375386e67c
commit 87339f96b5
No known key found for this signature in database
GPG Key ID: 69ADF8AEB6C8B5D1
2 changed files with 3 additions and 3 deletions

View File

@ -7,6 +7,7 @@ impl Defaults {
const fn unlock() -> bool { const fn unlock() -> bool {
true true
} }
#[inline] #[inline]
const fn unlock_migration() -> bool { const fn unlock_migration() -> bool {
false false

View File

@ -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. // Set device type to vGPU capable.
*dev_type_ptr = DEV_TYPE_VGPU_CAPABLE; *dev_type_ptr = DEV_TYPE_VGPU_CAPABLE;
}, }
OP_READ_VGPU_MIGRATION_CAP if CONFIG.unlock_migration => { OP_READ_VGPU_MIGRATION_CAP if CONFIG.unlock_migration => {
let mig_enabled: *mut bool = io_data.result.cast(); let mig_enabled: *mut bool = io_data.result.cast();
*mig_enabled = true; *mig_enabled = true;
}, }
_ => {} _ => {}
} }
if io_data.status == STATUS_OK { if io_data.status == STATUS_OK {
match io_data.op_type { match io_data.op_type {
OP_READ_VGPU_CFG => { OP_READ_VGPU_CFG => {