Hello! I am having a problem getting a PCI SCSI card working with PCI passthrough. I'm using fc14 (2.6.35.10-74.fc14.x86_64) with a AMD motherboard that others report works fine with IOMMU. Kernel support seems fine: [ 0.662640] AMD-Vi: Enabling IOMMU at 0000:00:00.2 cap 0x40 And my device is assigned to pci-stub: /sys/bus/pci/devices/0000:02:06.0/driver -> points to pci-stub Yet, I get this: # /usr/bin/qemu-kvm -device pci-assign,host=02:06.0,id=hostdev0,bus=pci.0,addr=0xc Using raw in/out ioport access (sysfs - Input/output error) Failed to assign device "hostdev0" : Device or resource busy *** The driver 'pci-stub' is occupying your device 0000:02:06.0. *** *** You can try the following commands to free it: *** *** $ echo "9005 0010" > /sys/bus/pci/drivers/pci-stub/new_id *** $ echo "0000:02:06.0" > /sys/bus/pci/drivers/pci-stub/unbind *** $ echo "0000:02:06.0" > /sys/bus/pci/drivers/pci-stub/bind *** $ echo "9005 0010" > /sys/bus/pci/drivers/pci-stub/remove_id *** qemu-kvm: -device pci-assign,host=02:06.0,id=hostdev0,bus=pci.0,addr=0xc: Device 'pci-assign' could not be initialized Which seems like a buggy error, as it's already assigned to pci-stub :) I've tried unbinding it from pci-stub, but same errors (except the *** messages do go away). The few messages from dmesg: [ 2551.020150] pci-stub 0000:02:06.0: restoring config space at offset 0x1 (was 0x2900000, writing 0x2900116) [ 2551.084292] assign device 0:2:6.0 failed The device as listed from lspci: 02:06.0 SCSI storage controller: Adaptec AHA-2940U2/U2W Subsystem: Adaptec AHA-2940U2 SCSI Controller Flags: bus master, medium devsel, latency 64, IRQ 21 BIST result: 00 I/O ports at b800 [disabled] [size=256] Memory at fe7ff000 (64-bit, non-prefetchable) [size=4K] Expansion ROM at fe7c0000 [disabled] [size=128K] Capabilities: [dc] Power Management version 1 Kernel driver in use: pci-stub Kernel modules: aic7xxx And it is not sharing an irq (at lest I don't think so?)... irq 21 from /proc/interrupts 21: 0 0 0 88 IO-APIC-fasteoi Anyone have any ideas? Greatly appreciated! FYI -- I am not subscribed to the list, so please CC nick@xxxxxxxxxxxx on replies. Thanks! - nick -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html