W
W
waitmar2020-10-26 13:34:22
linux
waitmar, 2020-10-26 13:34:22

makepkg error while compiling linux-vfio kernel. How to forward a video card in QEMU?

I am forwarding the video card in QEMU, I need to change the IOMMU groups, because the video card with the audio subsystem was in the same group as the processor. For this purpose, I install the ACS patch for the kernel. I isolated the forwarded video card, the vfio-pci driver is associated with it. Then I follow the following instructions:

git clone https://aur.archlinux.org/linux-vfio.git
cd linux-vfio
sudo nano /etc/makepkg.conf
locate #MAKEFLAGS=, change to MAKEFLAGS="-j$(nproc)"
CTRL+O, CTRL+X
makepkg -si
sudo nano /etc/default/grub
add pcie_acs_override=downstream same place as enabling iommu GRUB_CMDLINE_LINUX_DEFAULT=
CTRL+O, CTRL+X
sudo grub-mkconfig -o /boot/grub/grub.cfg
reboot

With makepkg -si, compilation takes about half an hour, ending with the following errors:
Setup is 15420 bytes (padded to 15872 bytes).
System is 8740 kB
CRC f0dc13b6
Kernel: arch/x86/boot/bzImage is ready  (#2)
make[1]: выход из каталога «/home/waitmar/acs/build/linux-vfio/src/archlinux-linux»
make[2]: вход в каталог «/home/waitmar/acs/build/linux-vfio/src/archlinux-linux»
m2c    -o arch/x86/crypto/aegis128-aesni.o arch/x86/crypto/aegis128-aesni.mod
make[2]: m2c: Нет такого файла или каталога
make[2]: *** [<встроенное>: arch/x86/crypto/aegis128-aesni.o] Ошибка 127
make[2]: выход из каталога «/home/waitmar/acs/build/linux-vfio/src/archlinux-linux»
make[1]: *** [scripts/Makefile.modpost:117: __modpost] Ошибка 2
make[1]: выход из каталога «/home/waitmar/acs/build/linux-vfio/src/archlinux-linux»
make: *** [Makefile:1388: modules] Ошибка 2
==> ОШИБКА: Произошел сбой в build().
    Прерывание...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2020-10-26
@CityCat4

Well, the easiest way to change the IOMMU group is simply by rearranging the video card - if there is nowhere or nothing has changed, then it's out of luck. But if the ultimate goal is to play on a virtual Windows, nothing will work (more precisely, there is a very high probability that nothing will work. Radeon ( not NVidia) increases the chance)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question