Greetings,

I've upgraded my server and found out that one if my vms with a pci sound cards 
complains there are no codecs in guest.
downgrading the relevant pkgs didn't restored the missing support.
here are some infos from the host:
utils_server /home/igor # qemu-system-x86_64 --version
QEMU emulator version 6.0.0
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers

utils_server /home/igor # libvirtd -v
2021-11-12 11:06:27.035+0000: 22290: info : libvirt version: 7.8.0
2021-11-12 11:06:27.035+0000: 22290: info : hostname: utils_server

utils_server /home/igor # uname -a
Linux utils_server 5.10.61-gentoo #1 SMP Wed Sep 1 19:13:27 -00 2021 x86_64 
Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz GenuineIntel GNU/Linux

igor@utils_server ~ $ lspci -k -s 00:1f.3
00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family 
HD Audio Controller (rev 31)
        Subsystem: ASRock Incorporation 100 Series/C230 Series Chipset Family 
HD Audio Controller
        Kernel driver in use: vfio-pci
        Kernel modules: snd_hda_intel

I'm using the acs patch in order to pass the O/B pci cards to different vms.
the relevant libvirt etry is this:
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x00' slot='0x1f' function='0x3'/>
      </source>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' 
function='0x5'/>
    </hostdev>

eqmu's cmd line shows this:
qemu     22309 19.7 49.6 17793348 15766996 ?   SLl  13:09   1:49 
/usr/bin/qemu-system-x86_64 -name guest=streamer-q35-uefi,debug-threads=on -S 
-object 
{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-17-streamer-q35-uefi/master-key.aes"}
 -blockdev 
{"driver":"file","filename":"/usr/share/edk2-ovmf/OVMF_CODE.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}
 -blockdev 
{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}
 -blockdev 
{"driver":"file","filename":"/var/lib/libvirt/qemu/nvram/streamer-q35-uefi_VARS.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}
 -blockdev 
{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}
 -machine 
pc-q35-6.0,accel=kvm,usb=off,vmport=off,dump-guest-core=off,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format,memory-backend=pc.ram
 -cpu host,
 migratable=on -m 15360 -object 
{"qom-type":"memory-backend-ram","id":"pc.ram","size":16106127360} -overcommit 
mem-lock=off -smp 4,sockets=1,dies=1,cores=2,threads=2 -uuid 
c5208cc8-c4ae-4b52-a54a-752b6d861aff -display none -no-user-config -nodefaults 
-chardev socket,id=charmonitor,fd=26,server=on,wait=off -mon 
chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global 
kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -global 
ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 -boot strict=on -device 
pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x1
 -device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x1.0x1 
-device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x1.0x2 
-device pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x1.0x3 
-device pcie-root-port,port=0x14,chassis=5,id=pci.5,bus=pcie.0,addr=0x1.0x4 
-device pcie-root-port,port=0x15,chassis=6,id=pci.6,bus=pcie.0,addr=0x1.0x5 
-device 
 pcie-root-port,port=0x16,chassis=7,id=pci.7,bus=pcie.0,addr=0x1.0x6 -device 
pcie-pci-bridge,id=pci.8,bus=pci.7,addr=0x0 -device 
pcie-root-port,port=0x17,chassis=9,id=pci.9,bus=pcie.0,addr=0x3.0x2 -device 
pcie-root-port,port=0x8,chassis=10,id=pci.10,bus=pcie.0,multifunction=on,addr=0x3
 -device pcie-root-port,port=0x9,chassis=11,id=pci.11,bus=pcie.0,addr=0x3.0x1 
-device qemu-xhci,p2=15,p3=15,id=usb,bus=pcie.0,addr=0x14 -device 
virtio-scsi-pci,id=scsi0,bus=pcie.0,addr=0x15 -blockdev 
{"driver":"file","filename":"/home/streamer/LibreELEC-Generic.x86_64-kvm.img.qcow2","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}
 -blockdev 
{"node-name":"libvirt-2-format","read-only":false,"driver":"qcow2","file":"libvirt-2-storage","backing":null}
 -device 
virtio-blk-pci,bus=pcie.0,addr=0x17,drive=libvirt-2-format,id=virtio-disk0,bootindex=1
 -blockdev 
{"driver":"host_cdrom","filename":"/dev/sr0","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}
 -blockdev {"
 
node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}
 -device 
scsi-cd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,device_id=drive-scsi0-0-0-0,drive=libvirt-1-format,id=scsi0-0-0-0
 -netdev tap,fd=29,id=hostnet0 -device 
e1000e,netdev=hostnet0,id=net0,mac=52:54:00:5a:4c:8c,bus=pci.1,addr=0x0 
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 
-audiodev id=audio1,driver=none -device 
vfio-pci,host=0000:00:1f.3,id=hostdev0,bus=pcie.0,addr=0x1f.0x5 -device 
usb-host,hostdevice=/dev/bus/usb/001/004,id=hostdev1,bus=usb.0,port=2 -device 
usb-host,hostdevice=/dev/bus/usb/001/003,id=hostdev2,bus=usb.0,port=1 -device 
vfio-pci,host=0000:00:02.0,id=hostdev3,bus=pcie.0,multifunction=on,addr=0x2,romfile=/home/streamer/gpu-8086:5912-uefi.rom
 -device virtio-balloon-pci,id=balloon0,bus=pci.4,addr=0x0 -object 
{"qom-type":"rng-random","id":"objrng0","filename":"/dev/urandom"} -device 
virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.5,addr=0x0 -sandbox on,ob
 solete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg 
timestamp=on

this was tested and reproduced on a different vm with ubuntu livecd 20/04

outputs from the guest:
LibreELEC:~ # lspci -k -s 00:1f.5
00:1f.5 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family 
HD Audio Controller (rev 31)
        Subsystem: ASRock Incorporation 100 Series/C230 Series Chipset Family 
HD Audio Controller
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
LibreELEC:~ # cat /proc/s
self/          slabinfo       softirqs       stat           swaps          sys/ 
          sysrq-trigger  sysvipc/
LibreELEC:~ # cat /proc/asound/card
card0/  cards
LibreELEC:~ # cat /proc/asound/cards 
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0x811218000 irq 56
LibreELEC:~ # aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
front:CARD=PCH
    Front output / input
surround21:CARD=PCH
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
LibreELEC:~ # aplay -l
**** List of PLAYBACK Hardware Devices ****
LibreELEC:~ # uanme -a
-sh: uanme: not found
LibreELEC:~ # uname -a
Linux LibreELEC 5.10.76 #1 SMP Sat Oct 30 09:31:44 EDT 2021 x86_64 GNU/Linux
LibreELEC:~ # dmesg | egrep -i "hda|snd"
[    4.505773] snd_hda_intel 0000:00:1f.5: bound 0000:00:02.0 (ops 
0xffffffffa8a18720)
[    5.139426] snd_hda_intel 0000:00:1f.5: CORB reset timeout#1, CORBRP = 0
[    5.176018] snd_hda_intel 0000:00:1f.5: no codecs found!

any ideas what I can be?
libvirt config and qemu output are the same as before the upgrade, the upgrade 
it self was of SP versions.

currently I suspect something with the acs patch.

any ideas?

Thanks,

Dagg


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

Reply via email to