Pass-through an audio card to the virtual machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I was able to pass-through an audio card to the VM. I could see the
card connected to the VM, but it seems like it is not working in the
VM.

I tried passing card to Ubuntu 10.04 and Windows 7 as well. Windows7
detected the hardware as 'High Definition Audio Controller' but shows
the device status as "The device can not start. (code 10)"

Output from host machine the

$ lspci -vvv -xxx
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
    Subsystem: ASUSTeK Computer Inc. Device 8410
    Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
    Interrupt: pin ? routed to IRQ 16
    Region 0: Memory at f9af8000 (64-bit, non-prefetchable) [disabled]
[size=16K]
    Capabilities: [50] Power Management version 2
        Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
        Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
    Kernel driver in use: pci-stub
    Kernel modules: snd-hda-intel
00: 02 10 83 43 00 04 10 04 40 00 03 04 10 40 00 00
10: 04 80 af f9 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 10 84
30: 00 00 00 00 50 00 00 00 00 00 00 00 0a 00 00 00
40: 00 00 02 00 00 10 00 00 00 00 00 00 01 00 00 00
50: 01 00 42 c8 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


Messages
[  358.721208] pci-stub 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[  358.760108] pci-stub 0000:00:14.2: restoring config space at offset
0xf (was 0x0, writing 0xa)
[  358.760135] pci-stub 0000:00:14.2: restoring config space at offset
0x4 (was 0x4, writing 0xf9af8004)
[  358.760145] pci-stub 0000:00:14.2: restoring config space at offset
0x3 (was 0x0, writing 0x4010)
[  358.760156] pci-stub 0000:00:14.2: restoring config space at offset
0x1 (was 0x4100000, writing 0x4100002)


# lspci -n
00:14.2 0403: 1002:4383 (rev 40)

# echo "1002 4383" > /sys/bus/pci/drivers/pci-stub/new_id
# echo "0000:00:14.2" > /sys/module/snd_hda_intel/drivers/pci\:HDA\ Intel/unbind
# echo "0000:00:14.2" > /sys/bus/pci/drivers/pci-stub/bind
# echo "1002 4383" > /sys/bus/pci/drivers/pci-stub/remove_id
# qemu-system-x86_64 -hda Windows_7.img -m 1024M -device pci-assign,host=00:14.2

# lspci -k
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
    Subsystem: ASUSTeK Computer Inc. Device 8410
    Kernel driver in use: pci-stub
    Kernel modules: snd-hda-intel

Now it shows the pci-stub as the kernel driver in use, but prior to
executing the bind/unbind commands it was showing driver in use as HDA
Intel.

Thanks and Regards,
Prasad
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux