aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--android/console.c18
-rw-r--r--vl-android.c4
2 files changed, 20 insertions, 2 deletions
diff --git a/android/console.c b/android/console.c
index de32ddb..0affb46 100644
--- a/android/console.c
+++ b/android/console.c
@@ -2094,6 +2094,12 @@ static int
do_snapshot_save( ControlClient client, char* args )
{
int ret;
+
+ if (args == NULL) {
+ control_write(client, "KO: argument missing, try 'avd snapshot save <name>'\r\n");
+ return -1;
+ }
+
OutputChannel *err = output_channel_alloc(client, control_write_err_cb);
do_savevm_oc(err, args);
ret = output_channel_written(err);
@@ -2106,6 +2112,12 @@ static int
do_snapshot_load( ControlClient client, char* args )
{
int ret;
+
+ if (args == NULL) {
+ control_write(client, "KO: argument missing, try 'avd snapshot load <name>'\r\n");
+ return -1;
+ }
+
OutputChannel *err = output_channel_alloc(client, control_write_err_cb);
do_loadvm_oc(err, args);
ret = output_channel_written(err);
@@ -2118,6 +2130,12 @@ static int
do_snapshot_del( ControlClient client, char* args )
{
int ret;
+
+ if (args == NULL) {
+ control_write(client, "KO: argument missing, try 'avd snapshot del <name>'\r\n");
+ return -1;
+ }
+
OutputChannel *err = output_channel_alloc(client, control_write_err_cb);
do_delvm_oc(err, args);
ret = output_channel_written(err);
diff --git a/vl-android.c b/vl-android.c
index b024bef..a1b88be 100644
--- a/vl-android.c
+++ b/vl-android.c
@@ -5095,9 +5095,9 @@ int main(int argc, char **argv, char **envp)
hdb_opts = drive_add(spath, HD_ALIAS, 1);
/* VERY IMPORTANT:
* Set this property or the file will be mounted with O_DIRECT,
- * which will slow down snapshot saving.x100 !
+ * which will slow down snapshot saving x100 !
*/
- qemu_opt_set(hdb_opts, "snapshot", "on");
+ qemu_opt_set(hdb_opts, "cache", "unsafe");
}
}