[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC 3/3] qemu-agent: add notify for qemu-ga boot
From: |
Chen Fan |
Subject: |
[Qemu-devel] [RFC 3/3] qemu-agent: add notify for qemu-ga boot |
Date: |
Fri, 17 Apr 2015 16:53:13 +0800 |
Signed-off-by: Chen Fan <address@hidden>
---
qga/main.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/qga/main.c b/qga/main.c
index 9939a2b..f011ce0 100644
--- a/qga/main.c
+++ b/qga/main.c
@@ -1170,6 +1170,19 @@ int main(int argc, char **argv)
g_critical("failed to initialize guest agent channel");
goto out_bad;
}
+
+ /* send a notification to path */
+ if (ga_state->channel) {
+ QDict *qdict = qdict_new();
+ int ret;
+
+ qdict_put_obj(qdict, "status", QOBJECT(qstring_from_str("connected")));
+ ret = send_response(s, QOBJECT(qdict));
+ if (ret < 0) {
+ g_warning("error sending connected status");
+ }
+ }
+
#ifndef _WIN32
g_main_loop_run(ga_state->main_loop);
#else
--
1.9.3
- [Qemu-devel] [RFC 0/7] Live Migration with Pass-through Devices proposal, Chen Fan, 2015/04/17
- [Qemu-devel] [RFC 1/7] qemu-agent: add agent init callback when detecting guest setup, Chen Fan, 2015/04/17
- [Qemu-devel] [RFC 2/7] qemu: add guest init event callback to do the initialize work for guest, Chen Fan, 2015/04/17
- [Qemu-devel] [RFC 3/7] hostdev: add a 'bond' type element in <hostdev> element, Chen Fan, 2015/04/17
- [Qemu-devel] [RFC 4/7] qemu-agent: add qemuAgentCreateBond interface, Chen Fan, 2015/04/17
- [Qemu-devel] [RFC 6/7] migrate: hot remove hostdev at perform phase for bond device, Chen Fan, 2015/04/17
- [Qemu-devel] [RFC 5/7] hostdev: add parse ip and route for bond configure, Chen Fan, 2015/04/17
- [Qemu-devel] [RFC 0/3] add support migration with passthrough device, Chen Fan, 2015/04/17
- [Qemu-devel] [RFC 7/7] migrate: add hostdev migrate status to support hostdev migration, Chen Fan, 2015/04/17
- Re: [Qemu-devel] [libvirt] [RFC 0/7] Live Migration with Pass-through Devices proposal, Laine Stump, 2015/04/19
- Re: [Qemu-devel] [RFC 0/7] Live Migration with Pass-through Devices proposal, Daniel P. Berrange, 2015/04/22