From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8lgi-0002kr-8c for qemu-devel@nongnu.org; Wed, 18 Apr 2018 07:55:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8lgf-0006oB-3j for qemu-devel@nongnu.org; Wed, 18 Apr 2018 07:55:48 -0400 References: <20180416181844.7851-1-marcandre.lureau@redhat.com> <20180416184406.GC14488@redhat.com> <19b7bccd-2282-5c94-fe7c-68f72ccbaba7@amsat.org> <860de622-d4cc-d1bf-ae27-e4d70d5d22f0@redhat.com> From: Paolo Bonzini Message-ID: <4a75a9c0-8cf5-5ec1-8edc-e768f360e96f@redhat.com> Date: Wed, 18 Apr 2018 13:55:34 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] mux: fix ctrl-a b again List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= Cc: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Peter Maydell , "=?UTF-8?Q?Daniel_P._Berrang=c3=a9?=" , qemu-stable , QEMU Developers On 18/04/2018 13:35, Marc-Andr=C3=A9 Lureau wrote: >> CharBackend is not the frontend, it is *used* by the front-end. It is >> the qemu_chr_* functions that are named wrong (they're named according >> to the user rather than the recipient). > If I follow you and the naming, you have this in mind: >=20 > - Chardev: stdio, mux, ringbuf, pty, file, null etc.. > - CharBackend: the "user" end > - frontend: the "user" The frontend is the device, the monitor, etc. The backend is how the frontend sees a Chardev, it never talks to it directly. Perhaps the confusing part is that the backend is also how the Chardev talks to the frontend? Paolo > It is quite confusing to me that CharBackend is for the "user" > frontend, and the backend of Chardev. > > You have to switch your mind > depending on the context or the point of view. >=20 > I'd rather use that terminology: >=20 > - ChardevBackend: stdio, mux, ringbuf, pty, file, null etc.. > - CharFrontend: the "user" end > - frontend the "user" >=20 > This way, there is only one direction from backend to frontend > (regardless of the point of view from chardev to frontend)