Some time ago, I asked a similar question, "How to connect GPIO in QEMU-emulated machine to an object in host?" and after some work, I have found a not perfect but satisfactory solution.
However, now we have virtio that supports GPIO, and it would be good to use that solution instead of a modified mpc8xxx driver. That previous solution was not perfect and difficult to maintain (I have only ported it to Buildroot 2021.02 and stopped further maintenance).
Unfortunately, I don't see any implementation of host-side virtio-user-gpio that I could use to connect GUI to a machine emulated in QEMU.
Is there any library (preferably with Python bindings) that could facilitate this task? Should I start from scratch, implementing the virtio protocol for the GPIO device as defined in the specification?