Hi, I've created for fun a pci dummy device in Qemu and the associated linux driver. Some friends wanted to know how I had done it so I did a write up.
If this can be of any use to someone who want to create his own device I would be glad. Also, if there are some error or some things implemented wrongly, I would be more than happy to correct my examples. http://tic-le-polard.blogspot.fr/2015/01/emulate-pci-device-with-qemu.html Have a good day !