I need to connect the GPIO pins in the ARM machine emulated in QEMU to the GUI objects in application working on the host machine.
For example, the level on the output GPIO should be reflected by a color of a rectangle. The input GPIO should be connected to a button. When the butt on in GUI is pressed, the input GPIO should be read as zero (otherwise as o ne) etc. Of course the input GPIOs should be also capable of generating the interrupts.
In fact it would be perfect to connect the emulated pin to a pipe or socket so that a change of the state caused by QEMU would produce a message sent to the host, and the appropriate message sent by the host should trigger th e appropriate change of the state of GPIO in QEMU (and possibly generate an interrupt).
I have created a few own peripherials for QEMU (e.g,) but implementation of such G PIO seems to be not trivial.
Up to now I have found that material:but it uses relatively old QEMU. Additionally, the proposed solution is compatible onl y with the old sysfs-based method of handling GPIOs.
Are there any existing solutions of that problem? I'll appreciate any hints or suggestions.
TIA & Regards, Wojtek