aboutsummaryrefslogtreecommitdiffstats
path: root/android/help.c
diff options
context:
space:
mode:
authorTim Baverstock <weasel@google.com>2010-12-02 14:21:39 +0000
committerTim Baverstock <weasel@google.com>2010-12-02 17:50:58 +0000
commit53d8a5c0c8fc087d16316a4399f5a773339c4956 (patch)
treeaf1e02fa9dff6839a1852711bdfc57f3725e31a0 /android/help.c
parent86ca19f7e89801a5735277a3c99df53d697dd2c4 (diff)
downloadexternal_qemu-53d8a5c0c8fc087d16316a4399f5a773339c4956.zip
external_qemu-53d8a5c0c8fc087d16316a4399f5a773339c4956.tar.gz
external_qemu-53d8a5c0c8fc087d16316a4399f5a773339c4956.tar.bz2
Add -no-snapshot-load option to permit reboot.
This is a workaround for the emulator not being able to detect the guest's power-down situation, and simply lingering like a zombie: on exit it's saved as a zombie, and is restored as a zombie which isn't useful. Denying autoload forces a reboot. Change-Id: I48f32600f5ce18cd5c71aa01d1b71b382102f227
Diffstat (limited to 'android/help.c')
-rw-r--r--android/help.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/android/help.c b/android/help.c
index 348e2e6..f49e3fa 100644
--- a/android/help.c
+++ b/android/help.c
@@ -670,18 +670,19 @@ help_snapshot(stralloc_t* out)
" Rather than executing a full boot sequence, the Android emulator can\n"
" resume execution from an earlier state snapshot (which is usually\n"
" significantly faster). When the parameter '-snapshot <name>' is given,\n"
- " the emulator loads the snapshot of that name from the snapshot image.\n\n"
+ " the emulator loads the snapshot of that name from the snapshot image,\n"
+ " and saves it back under the same name on exit.\n\n"
" If the option is not specified, it defaults to 'default-boot'. If the\n"
" specified snapshot does not exist, the emulator will perform a full boot\n"
- " sequence instead.\n\n"
+ " sequence instead, but will still save.\n\n"
" WARNING: In the process of loading, all contents of the system, userdata\n"
" and SD card images will be OVERWRITTEN with the contents they\n"
" held when the snapshot was made. Unless saved in a different\n"
" snapshot, any changes since will be lost!\n\n"
- " If you want to create a snapshot, connect to the emulator console:\n\n"
+ " If you want to create a snapshot manually, connect to the emulator console:\n\n"
" telnet localhost <port>\n\n"
@@ -694,13 +695,23 @@ static void
help_no_snapshot(stralloc_t* out)
{
PRINTF(
- " This forces the emulator to perform a full boot sequence, rather than\n"
- " loading the default snapshot. It overrides the '-snapshot' parameter.\n"
+ " This inhibits both the autoload and autosave operations, forcing\n"
+ " emulator to perform a full boot sequence and losing state on close.\n"
+ " It overrides the '-snapshot' parameter.\n"
" If '-snapshot' was specified anyway, a warning is raised.\n\n"
);
}
static void
+help_no_snapshot_load(stralloc_t* out)
+{
+ PRINTF(
+ " Prevents the emulator from loading the AVD's state from the snapshot\n"
+ " storage on start.\n\n"
+ );
+}
+
+static void
help_no_snapshot_save(stralloc_t* out)
{
PRINTF(