On Fri, Nov 16, 2012 at 02:05:29PM +0100, lementec fabien wrote: > Actually, I wanted to be independant of the QEMU event loop. Plus, > some proprietary simulation environment provides a closed socket > based interface to 'stimulate' the emulated device, at the PCIE level > for instance. These environments are sometimes installed on cluster > not running QEMU. The socket based approach fits quite well. > > Not knowing about QEMU internals, I spent some hours trying to find > out the best way to plug into QEMU, and did not find ivhsmem appropriate. > Honestly, I wanted to have a working solution asap, and it did not take > long before I opted for the socket based approach. Now that it is working, > I can take time to reconsider stuffs according to others need, and ideally > an integration to QEMU.
I suggest writing up a spec for the socket protocol. It can be put in docs/specs/ (like the ivshmem spec). This is both a good way to increase discussion and important for others who may wish to make use of this feature. Stefan