The source project of this merge request has been removed.
platforms/drm: Fix explicitGpus check
The check for explicitGpus in udev event handler was limited to new GPUs, and didn't consider changes to the GPU driver, eg. from vfio-pci to amdgpu
It fixes the issue of:
- Having a GPU denylisted in KWIN_DRM_DEVICES, that also boots with a normal driver (not vfio-pci or pci-stub via kernel parameters)
- After boot, plasma doesn't add the GPU
- Pass the GPU to VM (it changes to vfio-pci)
- Shutdown VM (it changes back to the normal driver)
- Plasma adds the GPU
Edited by Amir Maimon