mbilker / vgpu_unlock-rs

Unlock vGPU functionality for consumer grade GPUs
MIT License
443 stars 52 forks source link

[PROMOX][OVERRIDE]mdev uuid to vmid fail #34

Closed disfoundme closed 2 months ago

disfoundme commented 2 months ago
It seems that the function uuid_to_vmid [in src/utils](https://github.com/mbilker/vgpu_unlock-rs/blob/master/src/utils.rs#L38)  has some problems.

// Ensure that the first parts of the uuid are only 0
if uuid.0 != 0 || uuid.1 != 0 || uuid.2 != 0 || uuid.3[0] != 0 || uuid.3[1] != 0 {
    return None;
}

The first block should be the vm PCIE number.. Refer. https://forum.proxmox.com/threads/automatically-assign-uuid-to-a-vgpu-instance.98994/post-427480

mbilker commented 2 months ago

Thank you for the report!