Control state snapshots from Android console.

This patch exposes Qemu's save, load, delete and list commands for
state snapshots on the Android console. A level of indirection is
added by means of the OutputChannel construct. This allows us to show
the output of the Qemu commands on the console rather than on the
monitor, while minimizing the differences with the upstream codebase.

The new commands are exposed only when the configuration constant
CONFIG_ANDROID_SNAPSHOTS is not 0.

Change-Id: I558d5cd505d321fe2da5835713d341d151f60534
8 files changed
tree: a85cd059101de7f5eac9cd1f205d8971b6a3910d
  1. android/
  2. audio/
  3. block/
  4. distrib/
  5. docs/
  6. elff/
  7. fpu/
  8. gdb-xml/
  9. hw/
  10. images/
  11. memcheck/
  12. pc-bios/
  13. proxy/
  14. slirp/
  15. slirp-android/
  16. target-arm/
  17. tcg/
  18. telephony/
  19. .gitignore
  20. a.out.h
  21. acl.c
  22. acl.h
  23. aes.c
  24. aes.h
  25. aio-android.c
  26. aio.c
  27. alpha.ld
  28. android-configure.sh
  29. android-rebuild.sh
  30. Android.mk
  31. arm-dis.c
  32. arm-semi.c
  33. arm.ld
  34. balloon.h
  35. block.c
  36. block.h
  37. block_int.h
  38. bswap.h
  39. bt-host.c
  40. bt-host.h
  41. bt-vhci.c
  42. buffered_file.c
  43. buffered_file.h
  44. cache-utils.c
  45. cache-utils.h
  46. cbuffer.c
  47. cbuffer.h
  48. Changelog
  49. CHANGES.TXT
  50. charpipe.c
  51. charpipe.h
  52. CleanSpec.mk
  53. compatfd.c
  54. compatfd.h
  55. console-ui.c
  56. console.c
  57. console.h
  58. COPYING
  59. COPYING.LIB
  60. cpu-all.h
  61. cpu-common.h
  62. cpu-defs.h
  63. cpu-exec.c
  64. curses.c
  65. curses_keys.h
  66. cutils.c
  67. d3des.c
  68. d3des.h
  69. dcache.c
  70. dcache.h
  71. def-helper.h
  72. device_tree.c
  73. device_tree.h
  74. dis-asm.h
  75. disas.c
  76. disas.h
  77. dma-helpers.c
  78. dma.h
  79. dyngen-exec.h
  80. dynlink-static.c
  81. dynlink.h
  82. elf.h
  83. elf_ops.h
  84. envlist.c
  85. envlist.h
  86. exec-all.h
  87. exec.c
  88. feature_to_c.sh
  89. framebuffer.c
  90. framebuffer.h
  91. gdbstub.c
  92. gdbstub.h
  93. gen-charmap.py
  94. gen-icount.h
  95. gen-skin.py
  96. host-defs.h
  97. host-utils.c
  98. host-utils.h
  99. hostregs_helper.h
  100. hpet.h
  101. hxtool
  102. i386-dis.c
  103. i386-vl.ld
  104. i386.ld
  105. ia64.ld
  106. input.c
  107. INSTALL
  108. iolooper-select.c
  109. iolooper.h
  110. ioport-user.c
  111. ioport.c
  112. ioport.h
  113. json-lexer.c
  114. json-lexer.h
  115. json-parser.c
  116. json-parser.h
  117. json-streamer.c
  118. json-streamer.h
  119. keymaps.c
  120. keymaps.h
  121. kqemu.c
  122. kqemu.h
  123. kvm.h
  124. LICENSE
  125. linux_keycodes.h
  126. loader.c
  127. loadpng.c
  128. m68k.ld
  129. Makefile
  130. Makefile.android
  131. migration-dummy-android.c
  132. migration-exec.c
  133. migration-tcp-android.c
  134. migration-tcp.c
  135. migration.c
  136. migration.h
  137. module.c
  138. module.h
  139. MODULE_LICENSE_GPL
  140. monitor.c
  141. monitor.h
  142. net-android.c
  143. net-checksum.c
  144. net.c
  145. net.h
  146. NOTICE
  147. notify.c
  148. notify.h
  149. offset_layout.py
  150. osdep.c
  151. osdep.h
  152. outputchannel.c
  153. outputchannel.h
  154. path.c
  155. poison.h
  156. ppc-dis.c
  157. ppc.ld
  158. qbool.c
  159. qbool.h
  160. qdict.c
  161. qdict.h
  162. qemu-aio.h
  163. qemu-barrier.h
  164. qemu-char-android.c
  165. qemu-char.c
  166. qemu-char.h
  167. qemu-common.h
  168. qemu-config.c
  169. qemu-config.h
  170. qemu-error.c
  171. qemu-error.h
  172. qemu-io.c
  173. qemu-lock.h
  174. qemu-log.h
  175. qemu-malloc.c
  176. qemu-monitor.hx
  177. qemu-objects.h
  178. qemu-option.c
  179. qemu-option.h
  180. qemu-options.hx
  181. qemu-queue.h
  182. qemu-sockets-android.c
  183. qemu-sockets.c
  184. qemu-thread.c
  185. qemu-thread.h
  186. qemu-timer-ui.c
  187. qemu-timer.c
  188. qemu-timer.h
  189. qemu_debug.h
  190. qemu_file.h
  191. qemu_socket.h
  192. qemu_timers.h
  193. qerror.c
  194. qerror.h
  195. qfloat.c
  196. qfloat.h
  197. qint.c
  198. qint.h
  199. qjson.c
  200. qjson.h
  201. qlist.c
  202. qlist.h
  203. qobject.h
  204. qstring.c
  205. qstring.h
  206. readline.c
  207. readline.h
  208. README
  209. savevm.c
  210. sdl_keysym.h
  211. shaper.c
  212. shaper.h
  213. sockets.c
  214. sockets.h
  215. softmmu-semi.h
  216. softmmu_defs.h
  217. softmmu_exec.h
  218. softmmu_header.h
  219. softmmu_outside_jit.c
  220. softmmu_outside_jit.h
  221. softmmu_template.h
  222. sparc.ld
  223. sys-tree.h
  224. sysemu.h
  225. tap-win32.c
  226. targphys.h
  227. tcpdump.c
  228. tcpdump.h
  229. thunk.c
  230. thunk.h
  231. trace.c
  232. trace.h
  233. trace_common.h
  234. translate-all.c
  235. translate-op.c
  236. translate.make
  237. uboot_image.h
  238. usb-dummy-android.c
  239. usb-linux.c
  240. user-events-qemu.c
  241. user-events-ui.c
  242. user-events.h
  243. varint.c
  244. varint.h
  245. vgafont.h
  246. vl-android-ui.c
  247. vl-android.c
  248. vl.c
  249. vnc-android.c
  250. vnc-tls.h
  251. vnc.c
  252. vnc.h
  253. vnc_keysym.h
  254. vnchextile.h
  255. x86_64.ld