When a guest VM uses a vGPU created by GVT-g, i915 send multiple "add" udev events for the intel gpu itself on the host.
This isn't only at launch or at the creation of the virtual GPU either, it happens randomly during operation of the VM.
This confuses some Wayland Compositors, because they think that the same GPU got added another time.
Here the output of udevadm monitor -k on the host while a VM is started, vgpu is created, the VM is running for a minute or two, and then being shutdown again and the vpu removed.
Notice the 4x add /devices/pci0000:00/0000:00:02.0/drm/card0 (drm) that happen while the VM is running.
When a guest VM uses a vGPU created by GVT-g, i915 send multiple "add" udev events for the intel gpu itself on the host. This isn't only at launch or at the creation of the virtual GPU either, it happens randomly during operation of the VM. This confuses some Wayland Compositors, because they think that the same GPU got added another time.
Here the output of
udevadm monitor -k
on the host while a VM is started, vgpu is created, the VM is running for a minute or two, and then being shutdown again and the vpu removed. Notice the 4xadd /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
that happen while the VM is running.