aboutsummaryrefslogtreecommitdiffstats
path: root/vl-android.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2011-05-04 10:21:32 -0700
committerAndroid Code Review <code-review@android.com>2011-05-04 10:21:32 -0700
commita87431b1cc389c941c5fc6d061fbd22b101cc7cd (patch)
tree942278e8603daeaf6f2c27774ed3180aeb07402b /vl-android.c
parent46fd095b9f5d7e2434cebd407435e662f8e2df54 (diff)
parent4297b82edb9d528928fb168cb14abd4955f8664b (diff)
downloadexternal_qemu-a87431b1cc389c941c5fc6d061fbd22b101cc7cd.zip
external_qemu-a87431b1cc389c941c5fc6d061fbd22b101cc7cd.tar.gz
external_qemu-a87431b1cc389c941c5fc6d061fbd22b101cc7cd.tar.bz2
Merge "Fix snapshot save pathetic speed."
Diffstat (limited to 'vl-android.c')
-rw-r--r--vl-android.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/vl-android.c b/vl-android.c
index e151cc0..b024bef 100644
--- a/vl-android.c
+++ b/vl-android.c
@@ -5090,9 +5090,14 @@ int main(int argc, char **argv, char **envp)
PANIC("Snapshot storage file does not exist: %s", spath);
}
if (filelock_create(spath) == NULL) {
- PANIC("Snapshot storag already in use: %s", spath);
+ PANIC("Snapshot storage already in use: %s", spath);
}
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 !
+ */
+ qemu_opt_set(hdb_opts, "snapshot", "on");
}
}