Re: [PATCH] char: rename CharBackend->CharFrontend
Marc-André Lureau <[email protected]> Tue, 21 Oct 2025 17:58:34 +0400
| Newsgroups | dev.linux.lists.virtio-fs,org.nongnu.qemu-arm,org.nongnu.qemu-devel,org.nongnu.qemu-riscv,org.nongnu.qemu-rust,org.xenproject.lists.xen-devel |
|---|---|
| Message-ID | <CAJ+F1C+bGKtY6nf3LCXrwhZ2aEdu2npXJ9FapmsqgX0uLL5TUw@mail.gmail.com> |
Hi On Tue, Oct 21, 2025 at 5:52 PM Dr. David Alan Gilbert <[email protected]> wrote: > > * Peter Maydell ([email protected]) wrote: > > Marc-André Lureau <[email protected]> wrote: > > > The actual backend is "Chardev", CharBackend is the frontend side of it, > > > let's rename it for readability. > > > > I always thought the "frontend" was the device the guest > > saw (the 16650 UART or whatever). invocation.html has bits > > talking about "virtio hvc console frontend device" which > > seem like they also use that terminology. > > > > If we want to clean up the naming it might be helpful to have > > a comment somewhere documenting the different components and > > what names we give them and how they fit together (or even > > better, something in docs/devel/...) > > Or something more descriptive like 'CharGuestSide' If we are talking about the Chardev frontend or user, that's too restrictive. We have generic stream handling code (think mux/hub/tests/client/server etc) that do not fit that usage naming. -- Marc-André Lureau