]> git.proxmox.com Git - mirror_qemu.git/commit
block: Use QEMU_CLOCK_VIRTUAL for the accounting code in qtest mode
authorAlberto Garcia <berto@igalia.com>
Wed, 28 Oct 2015 15:33:09 +0000 (17:33 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 Nov 2015 15:22:46 +0000 (16:22 +0100)
commit918a17a464bac332b14a19d87106acc81e476f05
tree2bdf50cd9a5e56d00ccef6da8a3f69371a786353
parent556c2b60714e7dae3ed0eb3488910435263dc09f
block: Use QEMU_CLOCK_VIRTUAL for the accounting code in qtest mode

This patch switches to QEMU_CLOCK_VIRTUAL for the accounting code in
qtest mode, and makes the latency of the operation constant. This way we
can perform tests on the accounting code with reproducible results.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-id: 35ed0501450fa572684e9b5e92c361ab6cce565b.1446044838.git.berto@igalia.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/accounting.c