Hi, On Wed, Oct 16, 2024 at 1:14 PM Marc-André Lureau <marcandre.lur...@gmail.com> wrote: > > Hi > > On Wed, Oct 16, 2024 at 2:29 PM Roman Penyaev <r.peni...@gmail.com> wrote: >> >> This patch implements multiplexing capability of several backend >> devices, which opens up an opportunity to use a single frontend >> device on the guest, which can be manipulated from several >> backend devices. >> >> The idea of the change is trivial: keep list of backend devices >> (up to 4), init them on demand and forward data buffer back and >> forth. >> >> Patch implements another multiplexer type `mux-be`. The following >> is QEMU command line example: >> >> -chardev mux-be,id=mux0 \ >> -chardev socket,path=/tmp/sock,server=on,wait=off,id=sock0,mux-be-id=mux0 >> \ >> -chardev vc,id=vc0,mux-be-id=mux0 \ > > > I am not sure about adding "mux-be-id" to all chardev. It avoids the issue of > expressing a list of ids in mux-be though (while it may have potential loop!)
Loop is a good point, but actually can be easily fixed by forbidding the use of stacked muxes and a reference on itself. Do you think that would be enough? -- Roman