...
...
51
the representation of JSON lists in 'key=val' pairs format of the
51
the representation of JSON lists in 'key=val' pairs format of the
52
util/keyval.c, despite the fact that modern QAPI way of parsing,
52
util/keyval.c, despite the fact that modern QAPI way of parsing,
53
namely qobject_input_visitor_new_str(), is not used. Choice of keeping
53
namely qobject_input_visitor_new_str(), is not used. Choice of keeping
54
QAPI list syntax may help to smoothly switch to modern parsing in the
54
QAPI list syntax may help to smoothly switch to modern parsing in the
55
future.
55
future.
56
57
v8 .. v9:
58
59
* Incorporate Reviewed-by tags
56
60
57
v7 .. v8:
61
v7 .. v8:
58
62
59
* No need for a separate `->frontend` pointer in the hub device
63
* No need for a separate `->frontend` pointer in the hub device
60
structure, use `hub->parent.fe` directly.
64
structure, use `hub->parent.fe` directly.
...
...
127
131
128
[1] https://www.qemu.org/docs/master/system/qemu-manpage.html#hxtool-6
132
[1] https://www.qemu.org/docs/master/system/qemu-manpage.html#hxtool-6
129
[2] https://github.com/lf-edge/eve
133
[2] https://github.com/lf-edge/eve
130
134
131
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
135
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
132
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
136
Reviewed-by: "Marc-André Lureau" <marcandre.lureau@redhat.com>
133
Cc: Markus Armbruster <armbru@redhat.com>
137
Cc: Markus Armbruster <armbru@redhat.com>
134
Cc: Kevin Wolf <kwolf@redhat.com>
138
Cc: Kevin Wolf <kwolf@redhat.com>
135
Cc: Daniel P. Berrange <berrange@redhat.com>
139
Cc: Daniel P. Berrange <berrange@redhat.com>
136
Cc: qemu-devel@nongnu.org
140
Cc: qemu-devel@nongnu.org
137
141
...
...
147
chardev/char.c | 23 ++-
151
chardev/char.c | 23 ++-
148
chardev/chardev-internal.h | 51 ++++-
152
chardev/chardev-internal.h | 51 ++++-
149
chardev/meson.build | 1 +
153
chardev/meson.build | 1 +
150
include/chardev/char.h | 1 +
154
include/chardev/char.h | 1 +
151
qapi/char.json | 27 +++
155
qapi/char.json | 27 +++
152
qemu-options.hx | 48 ++++-
156
qemu-options.hx | 49 ++++-
153
tests/unit/test-char.c | 398 +++++++++++++++++++++++++++++++++++++
157
tests/unit/test-char.c | 398 +++++++++++++++++++++++++++++++++++++
154
9 files changed, 846 insertions(+), 8 deletions(-)
158
9 files changed, 847 insertions(+), 8 deletions(-)
155
create mode 100644 chardev/char-hub.c
159
create mode 100644 chardev/char-hub.c
156
160
157
--
161
--
158
2.43.0
162
2.43.0
159
163
160
164
diff view generated by jsdifflib
...
...
3
state changes from "connected" to "disconnected".
3
state changes from "connected" to "disconnected".
4
4
5
This behavior is similar to char-socket, for example.
5
This behavior is similar to char-socket, for example.
6
6
7
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
7
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
8
Reviewed-by: "Marc-André Lureau" <marcandre.lureau@redhat.com>
8
Reviewed-by: "Alex Bennée" <alex.bennee@linaro.org>
9
Reviewed-by: "Alex Bennée" <alex.bennee@linaro.org>
9
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
10
Cc: qemu-devel@nongnu.org
10
Cc: qemu-devel@nongnu.org
11
---
11
---
12
chardev/char-pty.c | 4 +++-
12
chardev/char-pty.c | 4 +++-
13
1 file changed, 3 insertions(+), 1 deletion(-)
13
1 file changed, 3 insertions(+), 1 deletion(-)
14
14
...
...
diff view generated by jsdifflib
...
...
30
namely qobject_input_visitor_new_str(), is not used. Choice of keeping
30
namely qobject_input_visitor_new_str(), is not used. Choice of keeping
31
QAPI list syntax may help to smoothly switch to modern parsing in the
31
QAPI list syntax may help to smoothly switch to modern parsing in the
32
future.
32
future.
33
33
34
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
34
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
35
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
35
Reviewed-by: "Marc-André Lureau" <marcandre.lureau@redhat.com>
36
Cc: qemu-devel@nongnu.org
36
Cc: qemu-devel@nongnu.org
37
---
37
---
38
chardev/char-hub.c | 301 +++++++++++++++++++++++++++++++++++++
38
chardev/char-hub.c | 301 +++++++++++++++++++++++++++++++++++++
39
chardev/char.c | 23 ++-
39
chardev/char.c | 23 ++-
40
chardev/chardev-internal.h | 51 ++++++-
40
chardev/chardev-internal.h | 51 ++++++-
...
...
diff view generated by jsdifflib
...
...
25
25
26
The test also ensures correct cleanup of chardevs in all cases, covering
26
The test also ensures correct cleanup of chardevs in all cases, covering
27
both valid and invalid configurations.
27
both valid and invalid configurations.
28
28
29
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
29
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
30
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
30
Reviewed-by: "Marc-André Lureau" <marcandre.lureau@redhat.com>
31
Cc: qemu-devel@nongnu.org
31
Cc: qemu-devel@nongnu.org
32
---
32
---
33
tests/unit/test-char.c | 398 +++++++++++++++++++++++++++++++++++++++++
33
tests/unit/test-char.c | 398 +++++++++++++++++++++++++++++++++++++++++
34
1 file changed, 398 insertions(+)
34
1 file changed, 398 insertions(+)
35
35
...
...
diff view generated by jsdifflib
1
This adds a few lines describing `hub` aggregator configuration
1
This adds a few lines describing `hub` aggregator configuration
2
for aggregation of several backend devices with a single frontend
2
for aggregation of several backend devices with a single frontend
3
device.
3
device.
4
4
5
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
5
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
6
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
6
Reviewed-by: "Marc-André Lureau" <marcandre.lureau@redhat.com>
7
Cc: qemu-devel@nongnu.org
7
Cc: qemu-devel@nongnu.org
8
---
8
---
9
qemu-options.hx | 49 +++++++++++++++++++++++++++++++++++++++++++++----
9
qemu-options.hx | 49 +++++++++++++++++++++++++++++++++++++++++++++----
10
1 file changed, 45 insertions(+), 4 deletions(-)
10
1 file changed, 45 insertions(+), 4 deletions(-)
11
11
...
...
diff view generated by jsdifflib