edwardrichter1 / kernel-qemu-pci

Creating a custom PCI device in QEMU and a module for it in the Linux kernel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux Kernel Module

Source code in module/

Please edit the 'custom' rule of the Makefile before executing it! You might as well need to edit start_qemu.sh

In case you are already in a virtualized environment you can also run simply 'make' to create a levpci.ko file which can be loaded by the running kernel.

Note: there is no point in running 'make' without any target in a non virtualized environment, since the module will not find the virtualized PCI device.

PCI device in QEMU

Implemented in qemu/hw/char/lev-pci.c

Easy, nothing complicated.

What I found disturbing was that there were no tutorials or anything. I'll soon post a tutorial for adding new PCI devices to QEMU.

About

Creating a custom PCI device in QEMU and a module for it in the Linux kernel.

License:GNU General Public License v2.0


Languages

Language:C 93.7%Language:C++ 2.1%Language:Python 1.0%Language:Shell 0.9%Language:Haxe 0.8%Language:Assembly 0.7%Language:Perl 0.5%Language:Objective-C 0.2%Language:TeX 0.1%