qemu-e2k/tests
Stefan Hajnoczi bfe8043e92 qcow2: implement lazy refcounts
Lazy refcounts is a performance optimization for qcow2 that postpones
refcount metadata updates and instead marks the image dirty.  In the
case of crash or power failure the image will be left in a dirty state
and repaired next time it is opened.

Reducing metadata I/O is important for cache=writethrough and
cache=directsync because these modes guarantee that data is on disk
after each write (hence we cannot take advantage of caching updates in
RAM).  Refcount metadata is not needed for guest->file block address
translation and therefore does not need to be on-disk at the time of
write completion - this is the motivation behind the lazy refcount
optimization.

The lazy refcount optimization must be enabled at image creation time:

  qemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=on a.qcow2 10G
  qemu-system-x86_64 -drive if=virtio,file=a.qcow2,cache=writethrough

Update qemu-iotests 031 and 036 since the extension header size changes
when we add feature bit table entries.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2012-08-06 22:39:14 +02:00
..
qemu-iotests qcow2: implement lazy refcounts 2012-08-06 22:39:14 +02:00
tcg target-or32: Add testcases 2012-07-27 21:13:06 +00:00
.gitignore
check-block.sh
check-qdict.c
check-qfloat.c
check-qint.c
check-qjson.c
check-qlist.c
check-qstring.c
fdc-test.c fdc-test: Clean up a bit 2012-07-17 16:48:32 +02:00
hd-geo-test.c qtest: Test we don't put hard disk info into CMOS for a CD-ROM 2012-07-17 16:48:31 +02:00
libqtest.c qtest: Tidy up temporary files properly 2012-07-09 17:21:02 +02:00
libqtest.h
m48t59-test.c
Makefile tests: Makefile: include dependency files 2012-07-28 09:13:49 +00:00
qemu-iotests-quick.sh
rtc-test.c
test-coroutine.c
test-iov.c rewrite iov_send_recv() and move it to iov.c 2012-06-11 23:12:11 +04:00
test-qmp-commands.c qapi: add test case for deallocating traversal of incomplete structure 2012-07-23 11:55:17 +01:00
test-qmp-input-strict.c
test-qmp-input-visitor.c qapi: fix error propagation 2012-07-23 11:55:17 +01:00
test-qmp-output-visitor.c
test-string-input-visitor.c
test-string-output-visitor.c qapi: String visitor, use %f representation for floats 2012-06-08 16:11:14 +02:00
test-visitor-serialization.c qapi: Add String visitor coverage to serialization unit tests 2012-06-08 16:11:14 +02:00