Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

[solved]looking-glass-1_beta7 kvmfr module not found

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
gorg86
Guru
Guru
User avatar
Posts: 357
Joined: Fri May 20, 2011 6:20 pm

[solved]looking-glass-1_beta7 kvmfr module not found

  • Quote

Post by gorg86 » Sat Feb 07, 2026 10:05 pm

Hi,

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 kernel
How do I fix this? Why is the system ignoring /etc/modprobe.d/vfio.conf? (I followed the wiki)
Do 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"
I don't like this, because the machine has to go to sleep mode for 1sec. But it's better than a full restart.
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
Top
Post Reply
1 post • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy