Advertisement
Guest User

Untitled

a guest
Jun 5th, 2024
255
0
57 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. # 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)
  2. # 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]
  3.  
  4. lspci -nnk -d 1002:67ff
  5. #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)
  6. #Subsystem: ASUSTeK Computer Inc. Device [1043:05eb]
  7. #Kernel driver in use: amdgpu
  8. #Kernel modules: amdgpu
  9.  
  10. # запускаем как в "совете"
  11. sudo modprobe -v vfio-pci ids=1002:67ff;
  12.  
  13. lspci -nnk -d 1002:67ff
  14. #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)
  15. #Subsystem: ASUSTeK Computer Inc. Device [1043:05eb]
  16. #Kernel driver in use: AMDGPU !!!!!!
  17. #Kernel modules: amdgpu
  18.  
  19. # Окей, может сделаем как написано в https://www.ibm.com/docs/en/linux-on-systems?topic=through-pci#taskvfio_host_pci__example__1
  20. echo 0000:06:00.0 > /sys/bus/pci/drivers/amdgpu/unbind
  21.  
  22. lspci -nnk -d 1002:67ff
  23. #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)
  24. #Subsystem: ASUSTeK Computer Inc. Device [1043:05eb]
  25. #Kernel modules: amdgpu
  26. # .... in use больше нет
  27. # Теперь должно сработать, правда?
  28.  
  29. # Пробуем
  30. qemu-img create -f qcow2 IMAGE.qcow2 40G
  31. 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
  32. # Упс... The -accel and "-machine accel=" options are incompatible, но ладно....
  33.  
  34. # Ой, не работает....
  35. 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
  36. # 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
  37.  
  38. lspci -nnk -d 1002:67ff
  39. #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)
  40. #Subsystem: ASUSTeK Computer Inc. Device [1043:05eb]
  41. #Kernel modules: amdgpu
  42.  
  43. # Ну и где Kernel driver in use: vfio-pci
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement