I wanted to try out looking-glass with the low latency module like it's described in here: https://looking-glass.io/docs/B7/ivshmem_kvmfr/
I emerged it from the guru overlay and the kvmfr module is not being built I think.
Is there a specific reason for that? In the looking-glass wiki dkms is used to install the module.
What is the proper Gentoo-way of installing it and keeping it updated with every dist-kernel update?
I'm new to GPU-passthrough (got it working just now) and KVM/QEMU. I'm using libvirt and virt-manager. I have to say, the virt-manager gui is quite "special", I'll move away from it I think.
Thanks
EDIT:
I got it fixed after recompiling the kernel, but now I face another problem. The vfio modules FAIL to grab the AMD GPU and AMDGPU gets loaded.
Code: Select all
modprobe: ERROR: could not insert 'vfio': Module already in kernel
modprobe: ERROR: could not insert 'vfio_iommu_type1': Module already in kernel
modprobe: ERROR: could not insert 'vfio_pci': Module already in kernel
modprobe: ERROR: could not insert 'kvm': Module already in kernel
modprobe: ERROR: could not insert 'kvm_amd': Module already in kernelDo I have to pass this as a kernel parameter somehow?
I'm using the dist-kernel.
EDIT 2:
I'm recompiling the kernel now and made sure /boot is mounted, because I didn't find any documentation how to properly regenerate initramfs with the dist-kernel (I don't know if it's related to that). if it still gets ignored I'll edit my grub.conf.
EDIT 3:
Got it to work with kernel parameters, but I get inconsistent behavior once the VM is shut down. If I restart it, the computer hard crashes after short usage. It just resets like hitting the reset button.
EDIT 4:
This seems to be some kind of GPU firmware bug, the card goes into some undefined state and has to be reset.
This can be accomplished by a reboot or by a script:
Code: Select all
#!/bin/bash
#
#replace xx\:xx.x with the number of your gpu and sound counterpart
#
#
echo "disconnecting amd graphics"
echo "1" | tee -a /sys/bus/pci/devices/0000\:xx\:xx.x/remove
echo "disconnecting amd sound counterpart"
echo "1" | tee -a /sys/bus/pci/devices/0000\:xx\:xx.x/remove
echo "entered suspended state press power button to continue"
echo -n mem > /sys/power/state
echo "reconnecting amd gpu and sound counterpart"
echo "1" | tee -a /sys/bus/pci/rescan
echo "AMD graphics card sucessfully reset"If anyone knows how to reset an AMD GPU without changing the power state, please let me know.
EDIT 5:
I'm trying out vendor-reset. It didn't compile at first, i posted a patch here:
https://bugs.gentoo.org/945984
