From: Roman Penyaev <r.peniaev@gmail.com>
Cc: "Roman Penyaev" <r.peniaev@gmail.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
qemu-devel@nongnu.org
Subject: [PATCH v5 5/8] chardev/char: introduce `mux-be-id=ID` option
Date: Thu, 17 Oct 2024 16:43:13 +0200 [thread overview]
Message-ID: <20241017144316.517709-6-r.peniaev@gmail.com> (raw)
In-Reply-To: <20241017144316.517709-1-r.peniaev@gmail.com>
Patch introduces `mux-be-id=ID` option for all chardev devices.
This is necessary to attach chardev to `mux-be` for backend
multiplexing. Actual implementation wimplementation will follow.
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: qemu-devel@nongnu.org
---
chardev/char.c | 3 +++
qapi/char.json | 6 +++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/chardev/char.c b/chardev/char.c
index d8dbdb6f84f1..cffe60860589 100644
--- a/chardev/char.c
+++ b/chardev/char.c
@@ -933,6 +933,9 @@ QemuOptsList qemu_chardev_opts = {
},{
.name = "mux",
.type = QEMU_OPT_BOOL,
+ },{
+ .name = "mux-be-id",
+ .type = QEMU_OPT_STRING,
},{
.name = "signal",
.type = QEMU_OPT_BOOL,
diff --git a/qapi/char.json b/qapi/char.json
index e04535435034..fb0dedb24383 100644
--- a/qapi/char.json
+++ b/qapi/char.json
@@ -199,11 +199,15 @@
# @logappend: true to append instead of truncate (default to false to
# truncate)
#
+# @mux-be-id: id of the mux-be device for backend multiplexing
+# (since: 9.2)
+#
# Since: 2.6
##
{ 'struct': 'ChardevCommon',
'data': { '*logfile': 'str',
- '*logappend': 'bool' } }
+ '*logappend': 'bool',
+ '*mux-be-id': 'str' } }
##
# @ChardevFile:
--
2.34.1
next prev parent reply other threads:[~2024-10-17 14:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-17 14:43 [PATCH v5 0/8] chardev: implement backend chardev multiplexing Roman Penyaev
2024-10-17 14:43 ` [PATCH v5 1/8] chardev/char: rename `MuxChardev` struct to `MuxFeChardev` Roman Penyaev
2024-10-17 14:43 ` [PATCH v5 2/8] chardev/char: rename `char-mux.c` to `char-mux-fe.c` Roman Penyaev
2024-10-17 14:43 ` [PATCH v5 3/8] chardev/char: move away mux suspend/resume calls Roman Penyaev
2024-10-17 14:43 ` [PATCH v5 4/8] chardev/char: rename frontend mux calls Roman Penyaev
2024-10-17 14:43 ` Roman Penyaev [this message]
2024-10-17 14:43 ` [PATCH v5 6/8] chardev/char-mux: implement backend chardev multiplexing Roman Penyaev
2024-10-17 14:43 ` [PATCH v5 7/8] tests/unit/test-char: add unit test for the `mux-be` multiplexer Roman Penyaev
2024-10-17 14:43 ` [PATCH v5 8/8] qemu-options.hx: describe multiplexing of several backend devices Roman Penyaev
2024-10-31 11:09 ` [PATCH v5 0/8] chardev: implement backend chardev multiplexing Roman Penyaev
2024-10-31 11:34 ` Marc-André Lureau
2024-10-31 12:10 ` Roman Penyaev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241017144316.517709-6-r.peniaev@gmail.com \
--to=r.peniaev@gmail.com \
--cc=marcandre.lureau@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).