guest agent: qemu-ga daemon

This is the actual guest daemon, it listens for requests over a
virtio-serial/isa-serial/unix socket channel and routes them through
to dispatch routines, and writes the results back to the channel in
a manner similar to QMP.

A shorthand invocation:

  qemu-ga -d

Is equivalent to:

  qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0 \
          -f /var/run/qemu-ga.pid -d

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
4 files changed
tree: 890d0c527a4c403b34ece7b02cc1c58a351bbd55
  1. audio/
  2. block/
  3. bsd-user/
  4. darwin-user/
  5. default-configs/
  6. docs/
  7. fpu/
  8. fsdev/
  9. gdb-xml/
  10. hw/
  11. libcacard/
  12. linux-headers/
  13. linux-user/
  14. net/
  15. pc-bios/
  16. qapi/
  17. qga/
  18. QMP/
  19. roms/
  20. scripts/
  21. slirp/
  22. sysconfigs/
  23. target-alpha/
  24. target-arm/
  25. target-cris/
  26. target-i386/
  27. target-lm32/
  28. target-m68k/
  29. target-microblaze/
  30. target-mips/
  31. target-ppc/
  32. target-s390x/
  33. target-sh4/
  34. target-sparc/
  35. target-unicore32/
  36. tcg/
  37. tests/
  38. ui/
  39. .gitignore
  40. .gitmodules
  41. a.out.h
  42. acl.c
  43. acl.h
  44. aes.c
  45. aes.h
  46. aio.c
  47. alpha-dis.c
  48. alpha.ld
  49. arch_init.c
  50. arch_init.h
  51. arm-dis.c
  52. arm-semi.c
  53. arm.ld
  54. async.c
  55. balloon.c
  56. balloon.h
  57. bitmap.c
  58. bitmap.h
  59. bitops.c
  60. bitops.h
  61. block-migration.c
  62. block-migration.h
  63. block.c
  64. block.h
  65. block_int.h
  66. blockdev.c
  67. blockdev.h
  68. bswap.h
  69. bt-host.c
  70. bt-host.h
  71. bt-vhci.c
  72. buffered_file.c
  73. buffered_file.h
  74. cache-utils.c
  75. cache-utils.h
  76. Changelog
  77. check-qdict.c
  78. check-qfloat.c
  79. check-qint.c
  80. check-qjson.c
  81. check-qlist.c
  82. check-qstring.c
  83. cmd.c
  84. cmd.h
  85. CODING_STYLE
  86. compatfd.c
  87. compatfd.h
  88. compiler.h
  89. config.h
  90. configure
  91. console.c
  92. console.h
  93. COPYING
  94. COPYING.LIB
  95. cpu-all.h
  96. cpu-common.h
  97. cpu-defs.h
  98. cpu-exec.c
  99. cpus.c
  100. cpus.h
  101. cris-dis.c
  102. cursor.c
  103. cursor_hidden.xpm
  104. cursor_left_ptr.xpm
  105. cutils.c
  106. def-helper.h
  107. device_tree.c
  108. device_tree.h
  109. dis-asm.h
  110. disas.c
  111. disas.h
  112. dma-helpers.c
  113. dma.h
  114. dyngen-exec.h
  115. elf.h
  116. envlist.c
  117. envlist.h
  118. error.c
  119. error.h
  120. error_int.h
  121. exec-all.h
  122. exec.c
  123. gdbstub.c
  124. gdbstub.h
  125. gen-icount.h
  126. HACKING
  127. hmp-commands.hx
  128. host-utils.c
  129. host-utils.h
  130. hpet.h
  131. hppa-dis.c
  132. hppa.ld
  133. i386-dis.c
  134. i386.ld
  135. ia64-dis.c
  136. ia64.ld
  137. input.c
  138. iohandler.c
  139. ioport-user.c
  140. ioport.c
  141. ioport.h
  142. iorange.h
  143. iov.c
  144. iov.h
  145. json-lexer.c
  146. json-lexer.h
  147. json-parser.c
  148. json-parser.h
  149. json-streamer.c
  150. json-streamer.h
  151. kvm-all.c
  152. kvm-stub.c
  153. kvm.h
  154. libfdt_env.h
  155. LICENSE
  156. linux-aio.c
  157. m68k-dis.c
  158. m68k-semi.c
  159. m68k.ld
  160. MAINTAINERS
  161. Makefile
  162. Makefile.dis
  163. Makefile.hw
  164. Makefile.objs
  165. Makefile.target
  166. Makefile.user
  167. microblaze-dis.c
  168. migration-exec.c
  169. migration-fd.c
  170. migration-tcp.c
  171. migration-unix.c
  172. migration.c
  173. migration.h
  174. mips-dis.c
  175. mips.ld
  176. module.c
  177. module.h
  178. monitor.c
  179. monitor.h
  180. nbd.c
  181. nbd.h
  182. net.c
  183. net.h
  184. notify.c
  185. notify.h
  186. os-posix.c
  187. os-win32.c
  188. osdep.c
  189. osdep.h
  190. oslib-posix.c
  191. oslib-win32.c
  192. path.c
  193. pci-ids.txt
  194. pflib.c
  195. pflib.h
  196. poison.h
  197. posix-aio-compat.c
  198. ppc-dis.c
  199. ppc.ld
  200. ppc64.ld
  201. qapi-schema-test.json
  202. qbool.c
  203. qbool.h
  204. qdict-test-data.txt
  205. qdict.c
  206. qdict.h
  207. qemu-aio.h
  208. qemu-barrier.h
  209. qemu-char.c
  210. qemu-char.h
  211. qemu-common.h
  212. qemu-config.c
  213. qemu-config.h
  214. qemu-doc.texi
  215. qemu-error.c
  216. qemu-error.h
  217. qemu-ga.c
  218. qemu-img-cmds.hx
  219. qemu-img.c
  220. qemu-img.texi
  221. qemu-io.c
  222. qemu-lock.h
  223. qemu-log.h
  224. qemu-malloc.c
  225. qemu-nbd.c
  226. qemu-nbd.texi
  227. qemu-objects.h
  228. qemu-option.c
  229. qemu-option.h
  230. qemu-options.h
  231. qemu-options.hx
  232. qemu-os-posix.h
  233. qemu-os-win32.h
  234. qemu-progress.c
  235. qemu-queue.h
  236. qemu-sockets.c
  237. qemu-tech.texi
  238. qemu-thread-posix.c
  239. qemu-thread-posix.h
  240. qemu-thread-win32.c
  241. qemu-thread-win32.h
  242. qemu-thread.h
  243. qemu-timer-common.c
  244. qemu-timer.c
  245. qemu-timer.h
  246. qemu-tool.c
  247. qemu-x509.h
  248. qemu.sasl
  249. qemu_socket.h
  250. qerror.c
  251. qerror.h
  252. qfloat.c
  253. qfloat.h
  254. qint.c
  255. qint.h
  256. qjson.c
  257. qjson.h
  258. qlist.c
  259. qlist.h
  260. qmp-commands.hx
  261. qobject.h
  262. qstring.c
  263. qstring.h
  264. range.h
  265. readline.c
  266. readline.h
  267. README
  268. rules.mak
  269. rwhandler.c
  270. rwhandler.h
  271. s390-dis.c
  272. s390.ld
  273. savevm.c
  274. sh4-dis.c
  275. simpletrace.c
  276. simpletrace.h
  277. softmmu-semi.h
  278. softmmu_defs.h
  279. softmmu_exec.h
  280. softmmu_header.h
  281. softmmu_template.h
  282. sparc-dis.c
  283. sparc.ld
  284. sparc64.ld
  285. spice-qemu-char.c
  286. sysemu.h
  287. targphys.h
  288. tcg-runtime.c
  289. test-qmp-commands.c
  290. test-visitor.c
  291. thunk.c
  292. thunk.h
  293. TODO
  294. trace-events
  295. translate-all.c
  296. uboot_image.h
  297. usb-bsd.c
  298. usb-linux.c
  299. usb-stub.c
  300. user-exec.c
  301. VERSION
  302. version.rc
  303. vgafont.h
  304. vl.c
  305. x86_64.ld
  306. xen-all.c
  307. xen-mapcache.c
  308. xen-mapcache.h
  309. xen-stub.c