Hello,

I recently had to reinstall my OS, but kept all my personal files.
One of the things that needs to be resetup partially is qemu.

I am getting the following error when running my qemu4.0 script to start win10:
./seabios-rtx2080.sh 24
pid 2558's current affinity list: 0-23
pid 2558's new affinity list: 0-7
qemu4.0-system-x86_64: -device vfio-pci,host=0a:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on,romfile=/media/dad/QEMU-SSD/qemu-wd/rtx.rom: vfio 0000:0a:00.0: group 16 is not viable Please ensure all devices within the iommu_group are bound to their vfio bus driver.
pid 2558's current affinity list: 0-7
pid 2558's new affinity list: 0-23

I had this before but cant remember how i Resolved it.

Here is my iommu group 16:
for a in /sys/kernel/iommu_groups/*; do find $a -type l; done

/sys/kernel/iommu_groups/16/devices/0000:0a:00.2
/sys/kernel/iommu_groups/16/devices/0000:0a:00.0
/sys/kernel/iommu_groups/16/devices/0000:0a:00.3
/sys/kernel/iommu_groups/16/devices/0000:0a:00.1



group 16 is my evga rtx 2080 video card
it has 4 devices. video, audio, usb, and serial bus.

here is my cmdline:
cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-5.0.0-32-generic root=/dev/mapper/vg-root ro vfio-pci.ids=10de:1e04,10de:10f7 mitigations=off


i only hold the video and audio as the usb and serial wont hold.
>lspci -nnk
0a:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1e04] (rev a1)
    Subsystem: eVga.com. Corp. Device [3842:2281]
    Kernel driver in use: vfio-pci
    Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
0a:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10f7] (rev a1)
    Subsystem: eVga.com. Corp. Device [3842:2281]
    Kernel driver in use: vfio-pci
    Kernel modules: snd_hda_intel
0a:00.2 USB controller [0c03]: NVIDIA Corporation Device [10de:1ad6] (rev a1)
    Subsystem: eVga.com. Corp. Device [3842:2281]
    Kernel driver in use: xhci_hcd
0a:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device [10de:1ad7] (rev a1)
    Subsystem: eVga.com. Corp. Device [3842:2281]
    Kernel driver in use: nvidia-gpu
    Kernel modules: i2c_nvidia_gpu



i compile qemu 4:
qemu4.0-system-x86_64 --version
QEMU emulator version 4.2.1 (v4.2.1-dirty)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers


this all worked great before
not sure how i got around the requirement to bind all devices in group 16 before.


here is my script:

#!/bin/bash

#DO NOT RUN THIS SCRIPT AS ROOT. IT FUCKS UP PULSEAUDIO!
cd /media/dad/QEMU-SSD/qemu-wd
export QEMU_AUDIO_DRV=pa
export QEMU_AUDIO_TIMER_PERIOD=200
export QEMU_PA_SERVER=/run/user/$ID/pulse/native

#MANUALLY RUN TASKSET AND QEMU AS ROOT HERE...
sudo taskset -p -c 0-7 `pidof lightdm | cut -d' ' -f2`
sudo taskset -c 8-23 qemu4.0-system-x86_64 -machine type=q35,accel=kvm -cpu EPYC,hv_time,kvm=off,hv_vendor_id=null \ -chardev stdio,id=seabios -device isa-debugcon,iobase=0x402,chardev=seabios \
-smp $1,sockets=1,cores=$1 \
-global q35-pcihost.pci-hole64-size=11G \
-bios /usr/share/seabios/bios.bin \
-m 32G \
-vga none \
-soundhw hda \
-mem-prealloc \
-rtc clock=host,base=localtime \
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \ -device vfio-pci,host=0a:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on,romfile=/media/dad/QEMU-SSD/qemu-wd/rtx.rom \
-device vfio-pci,host=0a:00.1,bus=root.1,addr=00.1,multifunction=on \
-device virtio-scsi-pci,id=scsi \
-drive id=disk0,if=virtio,cache=none,format=raw,file=/media/dad/QEMU-SSD/qemu-wd/windows10.img \
-netdev type=tap,id=net0,ifname=tap0 \
-device virtio-net-pci,netdev=net0,mac=00:16:3e:00:01:01 \
-usb -device usb-host,vendorid=0x046d,productid=0xc534 \
-usb -device usb-host,vendorid=0x16c0,productid=0x05e1 \
-boot menu=on \
-boot order=c


all help appreciated

_______________________________________________
vfio-users mailing list
vfio-users@redhat.com
https://www.redhat.com/mailman/listinfo/vfio-users

Reply via email to