* [Qemu-devel] [PATCH] console: Hook QemuConsoles into qom tree
@ 2013-06-12 11:51 Gerd Hoffmann
2013-07-01 13:14 ` Anthony Liguori
0 siblings, 1 reply; 4+ messages in thread
From: Gerd Hoffmann @ 2013-06-12 11:51 UTC (permalink / raw)
To: qemu-devel; +Cc: Anthony Liguori, Gerd Hoffmann
Put them named "console[$index]" below "/backend", so you can
list & inspect them via QMP.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
ui/console.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/ui/console.c b/ui/console.c
index 1a9ea93..07d4d63 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1581,6 +1581,8 @@ static DisplayState *get_alloc_displaystate(void)
*/
DisplayState *init_displaystate(void)
{
+ Error *local_err = NULL;
+ gchar *name;
int i;
if (!display_state) {
@@ -1592,6 +1594,14 @@ DisplayState *init_displaystate(void)
consoles[i]->ds == NULL) {
text_console_do_init(consoles[i]->chr, display_state);
}
+
+ /* Hook up into the qom tree here (not in new_console()), once
+ * all QemuConsoles are created and the order / numbering
+ * doesn't change any more */
+ name = g_strdup_printf("console[%d]", i);
+ object_property_add_child(container_get(object_get_root(), "/backend"),
+ name, OBJECT(consoles[i]), &local_err);
+ g_free(name);
}
return display_state;
--
1.7.9.7
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH] console: Hook QemuConsoles into qom tree
@ 2013-06-25 8:49 Gerd Hoffmann
2013-07-01 13:14 ` Anthony Liguori
0 siblings, 1 reply; 4+ messages in thread
From: Gerd Hoffmann @ 2013-06-25 8:49 UTC (permalink / raw)
To: qemu-devel; +Cc: Anthony Liguori, Gerd Hoffmann
Put them named "console[$index]" below "/backend", so you can
list & inspect them via QMP.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
ui/console.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/ui/console.c b/ui/console.c
index 28bba6d..e3e8297 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1580,6 +1580,8 @@ static DisplayState *get_alloc_displaystate(void)
*/
DisplayState *init_displaystate(void)
{
+ Error *local_err = NULL;
+ gchar *name;
int i;
if (!display_state) {
@@ -1591,6 +1593,14 @@ DisplayState *init_displaystate(void)
consoles[i]->ds == NULL) {
text_console_do_init(consoles[i]->chr, display_state);
}
+
+ /* Hook up into the qom tree here (not in new_console()), once
+ * all QemuConsoles are created and the order / numbering
+ * doesn't change any more */
+ name = g_strdup_printf("console[%d]", i);
+ object_property_add_child(container_get(object_get_root(), "/backend"),
+ name, OBJECT(consoles[i]), &local_err);
+ g_free(name);
}
return display_state;
--
1.7.9.7
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] console: Hook QemuConsoles into qom tree
2013-06-25 8:49 [Qemu-devel] [PATCH] console: Hook QemuConsoles into qom tree Gerd Hoffmann
@ 2013-07-01 13:14 ` Anthony Liguori
0 siblings, 0 replies; 4+ messages in thread
From: Anthony Liguori @ 2013-07-01 13:14 UTC (permalink / raw)
To: Gerd Hoffmann, qemu-devel; +Cc: Anthony Liguori
Applied. Thanks.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] console: Hook QemuConsoles into qom tree
2013-06-12 11:51 Gerd Hoffmann
@ 2013-07-01 13:14 ` Anthony Liguori
0 siblings, 0 replies; 4+ messages in thread
From: Anthony Liguori @ 2013-07-01 13:14 UTC (permalink / raw)
To: Gerd Hoffmann, qemu-devel; +Cc: Anthony Liguori
Applied. Thanks.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-07-01 13:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25 8:49 [Qemu-devel] [PATCH] console: Hook QemuConsoles into qom tree Gerd Hoffmann
2013-07-01 13:14 ` Anthony Liguori
-- strict thread matches above, loose matches on Subject: below --
2013-06-12 11:51 Gerd Hoffmann
2013-07-01 13:14 ` Anthony Liguori
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).