Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] [1002:67ff] (rev c1)
- # 06:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] [1002:aae0]
- lspci -nnk -d 1002:67ff
- #06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] [1002:67ff] (rev c1)
- #Subsystem: ASUSTeK Computer Inc. Device [1043:05eb]
- #Kernel driver in use: amdgpu
- #Kernel modules: amdgpu
- # запускаем как в "совете"
- sudo modprobe -v vfio-pci ids=1002:67ff;
- lspci -nnk -d 1002:67ff
- #06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] [1002:67ff] (rev c1)
- #Subsystem: ASUSTeK Computer Inc. Device [1043:05eb]
- #Kernel driver in use: AMDGPU !!!!!!
- #Kernel modules: amdgpu
- # Окей, может сделаем как написано в https://www.ibm.com/docs/en/linux-on-systems?topic=through-pci#taskvfio_host_pci__example__1
- echo 0000:06:00.0 > /sys/bus/pci/drivers/amdgpu/unbind
- lspci -nnk -d 1002:67ff
- #06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] [1002:67ff] (rev c1)
- #Subsystem: ASUSTeK Computer Inc. Device [1043:05eb]
- #Kernel modules: amdgpu
- # .... in use больше нет
- # Теперь должно сработать, правда?
- # Пробуем
- qemu-img create -f qcow2 IMAGE.qcow2 40G
- sudo qemu-system-x86_64 -boot c -drive file=IMAGE.qcow2 -accel kvm -m 1024 -machine q35,accel=kvm,kernel-irqchip=split -device vfio-pci,host=06:00.0
- # Упс... The -accel and "-machine accel=" options are incompatible, но ладно....
- # Ой, не работает....
- sudo qemu-system-x86_64 -boot c -drive file=IMAGE.qcow2 -accel kvm -m 1024 -machine q35,kernel-irqchip=split -device vfio-pci,host=06:00.0
- # qemu-system-x86_64: -device vfio-pci,host=06:00.0: vfio 0000:06:00.0: failed to open /dev/vfio/18: No such file or directory
- lspci -nnk -d 1002:67ff
- #06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] [1002:67ff] (rev c1)
- #Subsystem: ASUSTeK Computer Inc. Device [1043:05eb]
- #Kernel modules: amdgpu
- # Ну и где Kernel driver in use: vfio-pci
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement