{"id":13646993,"url":"https://github.com/Arc-Compute/Mdev-GPU","last_synced_at":"2025-04-21T21:32:12.107Z","repository":{"id":43033064,"uuid":"506698745","full_name":"Arc-Compute/Mdev-GPU","owner":"Arc-Compute","description":"A user-configurable utility for GPU vendor drivers enabling the registration of arbitrary mdev types with the VFIO-Mediated Device framework.","archived":false,"fork":false,"pushed_at":"2022-08-22T20:50:42.000Z","size":49,"stargazers_count":54,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-02T01:26:36.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.linux-gvm.org/","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Arc-Compute.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-23T15:42:32.000Z","updated_at":"2024-03-31T08:02:44.000Z","dependencies_parsed_at":"2022-08-25T23:01:50.140Z","dependency_job_id":null,"html_url":"https://github.com/Arc-Compute/Mdev-GPU","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arc-Compute%2FMdev-GPU","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arc-Compute%2FMdev-GPU/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arc-Compute%2FMdev-GPU/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arc-Compute%2FMdev-GPU/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arc-Compute","download_url":"https://codeload.github.com/Arc-Compute/Mdev-GPU/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223880390,"owners_count":17219112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:03:17.848Z","updated_at":"2024-11-09T20:30:55.242Z","avatar_url":"https://github.com/Arc-Compute.png","language":"Haskell","funding_links":[],"categories":["Haskell"],"sub_categories":[],"readme":"# Mdev GPU\n\nMdev-GPU is a user-configurable utility for GPU vendor drivers enabling the registration of arbitrary mdev types with the VFIO-Mediated Device framework.\n\nMdev-GPU is released under GPLv2 as one component of the [GPU Virtual Machine (GVM) Project](https://gvm-docs.openmdev.io/).\n\n# How do I use Mdev-GPU?\n\n- [Documentation for Mdev-GPU](https://openmdev.io/index.php/Mdev-GPU)\n\n# What does Mdev-GPU do?\n\nGPU virtualization is not widely supported using free(libre) driver programs on commodity GPUs.\n\nMdev-GPU enables the creation of arbitrary user-configurable Mediated Device types on existing drivers which either don't support [VFIO-Mdev functionality](https://openmdev.io/index.php/Virtual_I/O_Internals#Mdev_Mode) or only support pre-defined Mdev types.\n\n![](https://openmdev.io/images/c/cb/Mdev-GPU-Example_Use.gif)\n\n# How does this work?\n\nIn order to virtualize the GPU via the VFIO-Mdev API a driver must register devices and mdev callbacks with the Mediated Core.\nThis may be accomplished via the vendor driver in the case that it supports pre-defined mdev types or via GVM/Mdev-GPU for drivers which do not include support for Mdev functionality and/or do not support arbitrary Mdev types.\n\nA diagram below depicts the components Mdev-GPU interacts with.\n\n![](https://openmdev.io/images/7/75/Mdev-gpu.png)\n\nFor further information see the Virtual I/O Internals article on OpenMdev.io under the section titled [Registering PCIE Device with the Mediated Core](https://openmdev.io/index.php/Virtual_I/O_Internals#Registering_PCIE_Device_with_the_Mediated_Core).\n\n# What programs work with Mdev-GPU?\n\nIf you are running a program which interacts with the [VFIO-Mdev API](https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/tree/Documentation/driver-api/vfio-mediated-device.rst) then you can install Mdev-GPU underneath it without modifying your programs or changing your workflow.\n\nHere is a list of some existing programs that can interact with functionality enabled by Mdev-GPU without modification:\n\n- [LibVirt](https://libvirt.org/)\n- [LibVF.IO](https://libvf.io/)\n- [mdevctl](https://github.com/mdevctl/mdevctl)\n\n# Learn More\n\n- [Documentation from the OpenMdev Foundation](https://openmdev.io)\n\n# Compilation\n\nTo compile this program run the following commands:\n\n`curl -sSL https://get.haskellstack.org/ | sh`\n\n`stack install`\n\nThe resulting binary file or files (depending on which GVM Project sources are compiled) will be located in ~/.local/bin/\n\nThis program can take some time to compile (around 10 minutes depending on your system) so if you would prefer to use a pre-built binary instead they are made available under [Releases](https://github.com/Arc-Compute/Mdev-GPU/releases).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FArc-Compute%2FMdev-GPU","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FArc-Compute%2FMdev-GPU","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FArc-Compute%2FMdev-GPU/lists"}