On 10/03/2016 08:31, Gerd Hoffmann wrote: > > However, instead of adding a new -input-linux option, could you make it > > a QOM object which implements UserCreatable? Then you can add it with > > something like "-object input-linux,path=/dev/input/input10" (perhaps > > "input-evdev" would be more specific). This has three advantages: > It's merged meanwhile, but when doing it before 2.6 we can still change > it I think. Do you have a pointer to some sample code doing this and/or > docs for me?
backends/hostmem.c is probably as close as it can get. Paolo