[vbox-dev] PCI_PASSTRU on Ubuntu 16.04

Mario Lobo mlobo at digiart.art.br
Thu Jun 9 13:04:23 GMT 2016


Hi;

I tried posting this on "users" and got no reply, so I'm trying it here.


VirtualBox version: 5.0.20 and its extension pack downloaded from VB
site.

I am experimenting with VB on an Ububtu host and a Win7 guest, and
attempting to pass the PCI bus of my sound card to Win7. The card is a
Echo Gina 3G, which is properly detected and working on the host:

[#]>lspci    

04:07.0 Multimedia controller: Motorola DSP56361 Digital Signal
Processor (rev 01)

Board is Gygabyte 970A-UD3P with IOMMU enabled in BIOS and working on
the host:

[    1.166869] PCI-DMA: Disabling AGP.
[    1.166951] PCI-DMA: aperture base @ f8000000 size 65536 KB
[    1.166959] PCI-DMA: using GART IOMMU.
[    1.166962] PCI-DMA: Reserving 64MB of IOMMU area in the AGP apertur

Applied the proper parameters to the guest:

sudo VBoxManage modifyvm Windows7 --pciattach 04:07.0


When I start the VM, I get this:

kernel: [  802.860462] vboxdrv: ffffffffc1003020 VMMR0.r0
kernel: [  803.220420] vboxdrv: ffffffffc042d020 VBoxDDR0.r0
kernel: [  803.240172] vboxdrv: ffffffffc0008020 VBoxDD2R0.r0

kernel: [  803.334353] VBoxNetFlt: attached to
'enp3s0' /fc:aa:14:9d:46:f0 

kernel: [  803.366486] vboxpci: detected device: 1057:3410 at 04:07.0,
driver snd_echo3g 

kernel: [  803.372298] pci-stub 0000:04:07.0: claimed by stub 
kernel: [  803.372364] vboxpci 0000:04:07.0: vboxPciOsDevInit 

kernel: [  803.372420] vboxpci 0000:04:07.0: region 0: mmio
fe100000+1048576 

kernel: [  803.372442] vboxpci 0000:04:07.0: got irq 21 

kernel: [  803.377131] vboxpci 0000:04:07.0: reg=0 start=fe100000
size=1048576 

kernel: [  803.383887] vboxdrv: ffffffffc00f0020 VBoxEhciR0.r0 
kernel: [  804.778262] device enp3s0 entered promiscuous mode 
kernel: [  804.778297] vboxpci 0000:04:07.0: PCIRAW_POWER_ON 

------ this is strange since IOMMU is working on the host
------ I also got "no IOMMU found" once

kernel: [  805.787454] vboxpci 0000:04:07.0: cannot attach to IOMMU, no
domain 

kernel: [  813.422771] HPET: Using timer above configured range: 3 
kernel: [  813.422778] HPET: Using timer above configured range: 3 
kernel: [  813.422896] HPET: Using timer above configured range: 3 
kernel: [  813.422901] HPET: Using timer above configured range: 3 

kernel: [  829.202302] vboxpci 0000:04:07.0: reg=0 start=fe100000
size=1048576 

kernel: [  829.209739] vboxpci 0000:04:07.0: reg=0 start=fe100000
size=1048576


The guest detects the board and installs its driver, but the board
doesn't function and its leds go crazy.


Any pointers?

Thanks,


-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio.... YET!!]

"UNIX was not designed to stop you from doing stupid things, 
because that would also stop you from doing clever things."



More information about the vbox-dev mailing list