Re: [PATCH v6 6/8] chardev/char-mux: implement backend chardev multiplexing

2025-01-13 Thread Marc-André Lureau
Hi On Fri, Jan 10, 2025 at 7:39 PM Roman Penyaev wrote: > > On Fri, Jan 10, 2025 at 9:58 AM Daniel P. Berrangé > wrote: > > > > On Fri, Jan 10, 2025 at 09:43:52AM +0100, Roman Penyaev wrote: > > > On Thu, Jan 9, 2025 at 7:07 PM Daniel P. Berrangé > > > wrote: > > > > > > > > On Thu, Jan 09, 2

Re: [PATCH v6 6/8] chardev/char-mux: implement backend chardev multiplexing

2025-01-10 Thread Roman Penyaev
On Fri, Jan 10, 2025 at 9:58 AM Daniel P. Berrangé wrote: > > On Fri, Jan 10, 2025 at 09:43:52AM +0100, Roman Penyaev wrote: > > On Thu, Jan 9, 2025 at 7:07 PM Daniel P. Berrangé > > wrote: > > > > > > On Thu, Jan 09, 2025 at 01:56:40PM +0100, Roman Penyaev wrote: > > > > Hi, > > > > > > > > On

Re: [PATCH v6 6/8] chardev/char-mux: implement backend chardev multiplexing

2025-01-10 Thread Daniel P . Berrangé
On Fri, Jan 10, 2025 at 09:43:52AM +0100, Roman Penyaev wrote: > On Thu, Jan 9, 2025 at 7:07 PM Daniel P. Berrangé wrote: > > > > On Thu, Jan 09, 2025 at 01:56:40PM +0100, Roman Penyaev wrote: > > > Hi, > > > > > > On Tue, Jan 7, 2025 at 3:57 PM Marc-André Lureau > > > wrote: > > > > Whether we t

Re: [PATCH v6 6/8] chardev/char-mux: implement backend chardev multiplexing

2025-01-10 Thread Roman Penyaev
On Thu, Jan 9, 2025 at 7:07 PM Daniel P. Berrangé wrote: > > On Thu, Jan 09, 2025 at 01:56:40PM +0100, Roman Penyaev wrote: > > Hi, > > > > On Tue, Jan 7, 2025 at 3:57 PM Marc-André Lureau > > wrote: > > > Whether we talk about multiplexing front-end or back-end, the issues > > > are similar. In

Re: [PATCH v6 6/8] chardev/char-mux: implement backend chardev multiplexing

2025-01-09 Thread Daniel P . Berrangé
On Thu, Jan 09, 2025 at 01:56:40PM +0100, Roman Penyaev wrote: > Hi, > > On Tue, Jan 7, 2025 at 3:57 PM Marc-André Lureau > wrote: > > Whether we talk about multiplexing front-end or back-end, the issues > > are similar. In general, mixing input will create issues. Teeing > > output is less probl

Re: [PATCH v6 6/8] chardev/char-mux: implement backend chardev multiplexing

2025-01-09 Thread Roman Penyaev
Hi, On Tue, Jan 7, 2025 at 3:57 PM Marc-André Lureau wrote: > > Hi [cut] > > > But next attempt to write will loop over the same backend again, which > > > will see the "same" write multiple times. > > > > This case is handled by checking the difference between counters > > `d->be_written[i]` a

Re: [PATCH v6 6/8] chardev/char-mux: implement backend chardev multiplexing

2025-01-07 Thread Marc-André Lureau
Hi On Thu, Jan 2, 2025 at 2:22 PM Roman Penyaev wrote: > > Hi, > > First of all Happy New Year :) > > On Mon, Dec 30, 2024 at 12:41 PM Marc-André Lureau > wrote: > > [cut] > > > > + > > > +for (i = 0; i < d->be_cnt; i++) { > > > +written = d->be_written[i] - d->be_min_written; > > >

Re: [PATCH v6 6/8] chardev/char-mux: implement backend chardev multiplexing

2025-01-02 Thread Roman Penyaev
Hi, First of all Happy New Year :) On Mon, Dec 30, 2024 at 12:41 PM Marc-André Lureau wrote: [cut] > > + > > +for (i = 0; i < d->be_cnt; i++) { > > +written = d->be_written[i] - d->be_min_written; > > +if (written) { > > +/* Written in the previous call so take

Re: [PATCH v6 6/8] chardev/char-mux: implement backend chardev multiplexing

2024-12-30 Thread Marc-André Lureau
Hi On Mon, Dec 23, 2024 at 5:24 PM Roman Penyaev 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