Denis V. Lunev d61790112f block/parallels: add prealloc-mode and prealloc-size open paramemets
This is preparational commit for tweaks in Parallels image expansion.
The idea is that enlarge via truncate by one data block is slow. It
would be much better to use fallocate via bdrv_write_zeroes and
expand by some significant amount at once.

Original idea with sequential file writing to the end of the file without
fallocate/truncate would be slower than this approach if the image is
expanded with several operations:
- each image expanding means file metadata update, i.e. filesystem
  journal write. Truncate/write to newly truncated space update file
  metadata twice thus truncate removal helps. With fallocate call
  inside bdrv_write_zeroes file metadata is updated only once and
  this should happen infrequently thus this approach is the best one
  for the image expansion
- tail writes are ordered, i.e. the guest IO queue could not be sent
  immediately to the host introducing additional IO delays

This patch just adds proper parameters into BDRVParallelsState and
performs options parsing in parallels_open.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Roman Kagan <rkagan@parallels.com>
Signed-off-by: Roman Kagan <rkagan@parallels.com>
Message-id: 1430207220-24458-26-git-send-email-den@openvz.org
CC: Roman Kagan <rkagan@parallels.com>
CC: Kevin Wolf <kwolf@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-05-22 09:37:32 +01:00
2015-05-08 14:11:10 +03:00
2013-04-18 13:50:53 +02:00
2015-02-06 16:11:38 +00:00
2015-03-19 11:30:37 +03:00
2015-04-30 13:21:42 +02:00
2015-05-11 14:49:03 +01:00
2015-05-11 16:25:33 +01:00
2015-05-11 08:59:07 -04:00
2015-03-09 09:14:28 +00:00
2015-05-14 12:15:18 -07:00
2015-05-20 10:23:08 +02:00
2012-09-07 09:02:44 +03:00
2015-04-04 09:45:59 +03:00
2014-06-16 13:24:35 +02:00
2013-09-05 09:40:31 -05:00
2015-04-28 15:36:09 +02:00
2013-10-11 09:34:56 -07:00
2008-10-12 17:54:42 +00:00
2015-04-26 16:49:24 +01:00
2015-04-30 16:05:48 +03:00
2013-07-23 02:41:31 +02:00
2015-05-08 14:11:10 +03:00
2015-05-12 10:40:31 +01:00
2015-02-05 17:16:14 +01:00
2015-04-30 16:55:16 +02:00
2015-05-11 16:25:33 +01:00
2015-02-16 15:07:19 +00:00
2014-05-24 00:07:29 +04:00
2015-05-11 08:59:07 -04:00
2013-10-11 09:34:56 -07:00
2015-05-14 12:15:18 -07:00
2015-04-25 22:05:07 +01:00
2013-10-11 09:34:56 -07:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 418 MiB
Languages
Rust 68.8%
C 26.3%
C++ 3%
Python 0.9%
Shell 0.5%
Other 0.3%