Implementing PCI-Passthrough with Linux-KVM on Debian

Solution 1:

Article mentioned for PCI-passthrough, the Kernel config is required

make menuconfig
set "Bus options (PCI etc.)" -> "Support for DMA Remapping Devices" to "*"
set "Bus options (PCI etc.)" -> "Enable DMA Remapping Devices" to "*"
set "Bus options (PCI etc.)" -> "PCI Stub driver" to "*"

optional setting: 
set "Bus options (PCI etc.)" -> "Support for Interrupt Remapping" to "*"

However, I could not find these options under "Bus options" and instead for it under "Device Drivers --> IOMMU Hardware Support".

After following the article mentioned, I still had issues boot up the guest machine and getting errors that "Device 'pci-assign' could not be initialized". I managed to get it boot by executing:

 echo 1 > /sys/module/kvm/parameters/allow_unsafe_assigned_interrupts

Refer to the following article if you're still having issues: http://spica-and-roid.blogspot.com.au/2012/07/howto-kvm-passthrough.html