USB Raw Gadget (an interface that allows to emulate USB devices through the USB Gadget subsystem) has been merged into mainline: git.kernel.org/pub/scm/linux/
Conversation
Replying to
Awesome! is there something similar for emulating PCI devices? or is the PCI subsystem too low on the stack to do such a thing? I believe the only solutions i've seen are in the form of devices emulated through qemu
1
Replying to
There are hardware based solutions, but I'm not aware of any implemented solutions for emulating PCI devices within the kernel. Would love to know if something like this exists

