Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408953 - app-emulation/qemu-kvm-1.0-r3: Interrupt remapping for PCI Passthrough Support is unimplemented on AMD Processors
Summary: app-emulation/qemu-kvm-1.0-r3: Interrupt remapping for PCI Passthrough Suppor...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-20 06:30 UTC by Richard Yao (RETIRED)
Modified: 2012-07-08 20:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2012-03-20 06:30:03 UTC
https://lkml.org/lkml/2011/7/14/238

Currently, it is necessary to load the kvm module with allow_unsafe_assigned_interrupts=1 in order to do PCI Passthrough on AMD hardware, which can cause the guest to crash the host OS. We should modify the kernel component to use the IOMMU for interrupt remapping to fix this.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2012-07-08 20:56:39 UTC
What you're looking for here is the VFIO branch where this work is happening. It looks like it has some potential to land in Linux 3.6 and QEMU 1.2. But until then, the current stuff in the kernel is totally wrong and busted because AMD actually implements a PCIe<->PCI bridge and as such the IOMMU can't really see beyond the bridge and deal with IRQs correctly.

The result is a complicated solution that is slowly taking shape but should really be discussed upstream.