mirror of
https://github.com/mbilker/vgpu_unlock-rs.git
synced 2025-06-08 13:28:23 +02:00
rustfmt
This commit is contained in:
parent
375386e67c
commit
87339f96b5
@ -7,6 +7,7 @@ impl Defaults {
|
||||
const fn unlock() -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
#[inline]
|
||||
const fn unlock_migration() -> bool {
|
||||
false
|
||||
|
@ -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 => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user