[4.2.16] PCI passthrough now fails with newer kernels

Discussions related to using VirtualBox on Linux hosts.
Post Reply
ucrasher
Posts: 85
Joined: 3. May 2012, 10:55
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP,Win7,various Linux

[4.2.16] PCI passthrough now fails with newer kernels

Post by ucrasher »

Hi,
since almost a year I use PCI passthrough successfully on an Ububtu 12.04 host (guest is Win7).
viewtopic.php?f=7&t=49322&p=238575&hili ... gh#p238575

The host kernel was 3.2.x. Recently I upgraded the kernel to 3.8.x. Now the PCI passthrough fails. In the syslog I find this after the VM has been started:

Code: Select all

[23563.237010] created IOMMU domain ffff88000f2c2b00
[23573.529777] dmar: DMAR:[DMA Read] Request device [00:1d.0] fault addr d4c9e000 
[23573.529777] DMAR:[fault reason 06] PTE Read access is not set
Is this a known effect? Or would you guys expect it to work fine? Does this ring a bell with somebody? Any hints are very welcome!
Windows (guest) sees the device (a USB host), but cannot start it (Error 43).

I also tried with 3.10 and 3.11 kernels - same result.
Running the old 3.2 kernel does not show the error.

Thanks!
Attachments
VBox.log
vb log
(109.29 KiB) Downloaded 15 times
Thanks, ucrasher.
ucrasher
Posts: 85
Joined: 3. May 2012, 10:55
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP,Win7,various Linux

Re: [4.2.16/5.0.16] PCI passthrough now fails with newer kernels

Post by ucrasher »

Hi,
just an update since the problem still exists.
Now using Ubuntu 14.04 with kernel 4.2 from Wily. VB is 5.016.

syslog

Code: Select all

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
kernel cmd line:

Code: Select all

iommu=pt intel_iommu=on intel_iommu=igfx_off
I also ensured that xhci/ehci handover is disabled in BIOS (since this is a USB controller).

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.
Thanks, ucrasher.
ucrasher
Posts: 85
Joined: 3. May 2012, 10:55
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP,Win7,various Linux

Re: [4.2.16] PCI passthrough now fails with newer kernels

Post by ucrasher »

The log file with a Linux guest.
Attachments
VBox.log
(121.17 KiB) Downloaded 9 times
Thanks, ucrasher.
Struhio
Posts: 2
Joined: 27. Sep 2010, 20:13
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP

Re: [4.2.16] PCI passthrough now fails with newer kernels

Post by Struhio »

Yes this is still issue with Ubuntu 16.04 + VirtualBox 5.0.20.
I've got devices that successfully run under QEMU-KVM, but do not want to work in VirtualBox.

This clearly VB issue, too bad they are not fixing this.
Post Reply