How to implement virtual hardware in QEMU?
Hello everyone, I want to implement some virtual hardware in QEMU for driver testing. For example, to implement a timer which sends interrupt to CPU periodically. However, I can't find any documentation which details the interfaces and the framework. The only clue is the `hw` directory in the source tree of QEMU, but it is so complex for a beginners to start up. So, are there helpful videos or articles? Regards!
Hi Douglas, On Wed, Jun 14, 2017 at 6:17 AM, Douglas Su <d0u9.su@outlook.com> wrote:
Hello everyone,
I want to implement some virtual hardware in QEMU for driver testing. For example, to implement a timer which sends interrupt to CPU periodically. However, I can't find any documentation which details the interfaces and the framework. The only clue is the `hw` directory in the source tree of QEMU, but it is so complex for a beginners to start up.
So, are there helpful videos or articles?
The Qemu mailing list probably will be better.
Regards!
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Regards, Shahbaz Khan
Hello, On Wed, Jun 14, 2017 at 01:17:57AM +0000, Douglas Su wrote:
Hello everyone,
I want to implement some virtual hardware in QEMU for driver testing. For example, to implement a timer which sends interrupt to CPU periodically. However, I can't find any documentation which details the interfaces and the framework. The only clue is the `hw` directory in the source tree of QEMU, but it is so complex for a beginners to start up.
So, are there helpful videos or articles?
I wrote something like this a few years ago: https://github.com/levex/kernel-qemu-pci Not sure if it still works, but it may be enough to get you started. Hope this helps. Levente
participants (3)
-
Douglas Su -
Levente Kurusa -
Shahbaz khan