VirtualBox

Opened 10 years ago

Closed 4 years ago

#12506 closed defect (obsolete)

PCI-passthrough fails with Ubuntui kernel 3.5 and above

Reported by: ucrasher Owned by:
Component: host support Version: VirtualBox 4.3.4
Keywords: PCI-passthrough Cc:
Guest type: Windows Host type: Linux

Description

Hi, was using PCI passthrough since 1.5 years. Host Ubuntu 12.04 with kernel 3.2.x, VB different versions (4.x to 4.3.4). After upgrade to raring kernel the PCI-passthrough fails. Trying kernel 3.5.x showed the same. The PCI device is one of the USB controllers on the mainboard. The fail situation prevents the windows7 in guest to start the root hub driver (error 43). BTW: USB passthrough is not an option to what I need to achieve. It is too slow if USB devices re-enumerate after a firmware flash, so I cannot debug firmware flashers.

Attachments: syslog and VB log for both kernels, and guest.vbox. I can do tests if you need that.

Attachments (8)

VBox_3-8.log (108.0 KB ) - added by ucrasher 10 years ago.
VBox_3-2.log (107.8 KB ) - added by ucrasher 10 years ago.
syslog_3-8.log (136.7 KB ) - added by ucrasher 10 years ago.
syslog_3-2.log (139.3 KB ) - added by ucrasher 10 years ago.
guest.vbox (24.2 KB ) - added by ucrasher 10 years ago.
VBox_kernel_VB5.1_kernel_4_4.log (115.0 KB ) - added by ucrasher2 8 years ago.
portion of syslog showing failed IOMMU calls
VBox_kernel_VB5.1_kernel_4_4.2.log (115.0 KB ) - added by ucrasher2 8 years ago.
vbox.log for VB 5.1.6 and kernel 4.4 on Ubuntu 16.04
interrupts_kernel_4_4.txt (2.5 KB ) - added by ucrasher2 8 years ago.

Download all attachments as: .zip

Change History (12)

by ucrasher, 10 years ago

Attachment: VBox_3-8.log added

by ucrasher, 10 years ago

Attachment: VBox_3-2.log added

by ucrasher, 10 years ago

Attachment: syslog_3-8.log added

by ucrasher, 10 years ago

Attachment: syslog_3-2.log added

by ucrasher, 10 years ago

Attachment: guest.vbox added

comment:1 by ucrasher, 10 years ago

Hi, tested with saucy kernel (3.11), still does not work. I had hoped for some improvements with that kernel since the change log contains quite some lines talking about IOMMU fixes.

If there is anything I can do myself, please let me know.

PS: If you are still in Endersbach, then I can bring the machine for some test if you need that.

comment:2 by ucrasher, 8 years ago

https://forums.virtualbox.org/viewtopic.php?f=7&t=57200

Now using Ubuntu 14.04 with kernel 4.2 from Wily. VB is 5.016.

Syslog

vboxpci 0000:00:1d.0: reg=0 start=f7f17000 size=1024
DMAR: DRHD: handling fault status reg 3
DMAR: DMAR:[DMA Read] Request device [00:1d.0] fault addr 697e2000 
DMAR:[fault reason 06] PTE Read access is not set

With a Linux guest, I see the device with lspci, but it probably does not get interrupts. My guess is that the above failure prevents them to get passed into the VM.

by ucrasher2, 8 years ago

portion of syslog showing failed IOMMU calls

by ucrasher2, 8 years ago

vbox.log for VB 5.1.6 and kernel 4.4 on Ubuntu 16.04

by ucrasher2, 8 years ago

Attachment: interrupts_kernel_4_4.txt added

comment:3 by ucrasher2, 8 years ago

Hi, I attached a few new files from VB 5.1.6, Ubuntu 16.04 with kernel 4.4. There are quite still some error lines in syslog.

Example

DMAR: DRHD: handling fault status reg 2
DMAR: DMAR:[DMA Read] Request device [02:00.0] fault addr 8d910000
DMAR:[fault reason 06] PTE Read access is not set

And at termination of the VM, it even crashes with "kernel NULL pointer dereference". This can be seen in the attached syslog.

comment:4 by aeichner, 4 years ago

Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use