On Fri, 2014-02-28 at 13:39 -0500, ret val wrote: > I would like to use KVM to reverse engineer/debug a PCI driver. With a > IOMMU and a pass-through device setup, would it be possible to > monitor/log all PCI bus traffic to a device? How can I go about > enabling and viewing this? You can't monitor bus traffic, you'd still need a PCI analyzer for that, but you can track all driver and guest OS access to the device. So you can at least soft or reverse engineer the driver. To do that, uncomment the #define DEBUG_VFIO line near the top of hw/misc/vfio.c and change all the VFIO_ALLOW_FOO defines from 1 to 0, especially the MMAP one. Thanks, Alex -- 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