aboutsummaryrefslogtreecommitdiff
path: root/tests/virtio-ccw-test.c
diff options
context:
space:
mode:
authorAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>2019-07-29 15:46:00 +0300
committerThomas Huth <thuth@redhat.com>2019-08-15 19:23:59 +0200
commitca1ef1e62e581f61c40f8be49d222007739691c4 (patch)
treea44dd28fac7c1cbdd918227bac161b408983dd74 /tests/virtio-ccw-test.c
parent375eae1c716bd55936d65ad545ae2ea0c9909b91 (diff)
downloadqemu-ca1ef1e62e581f61c40f8be49d222007739691c4.zip
qemu-ca1ef1e62e581f61c40f8be49d222007739691c4.tar.gz
qemu-ca1ef1e62e581f61c40f8be49d222007739691c4.tar.bz2
tests: Set read-zeroes on for null-co driver
This patch is to reduce the number of Valgrind report messages about using uninitialized memory with the null-co driver. It helps to filter real memory issues and is the same work done for the iotests with the commit ID a6862418fec4072. Suggested-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> Message-Id: <1564404360-733987-1-git-send-email-andrey.shinkevich@virtuozzo.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/virtio-ccw-test.c')
-rw-r--r--tests/virtio-ccw-test.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/virtio-ccw-test.c b/tests/virtio-ccw-test.c
index 48c714d..6be4e6a 100644
--- a/tests/virtio-ccw-test.c
+++ b/tests/virtio-ccw-test.c
@@ -53,7 +53,8 @@ static void virtio_serial_hotplug(void)
static void virtio_blk_nop(void)
{
- global_qtest = qtest_initf("-drive if=none,id=drv0,file=null-co://,format=raw "
+ global_qtest = qtest_initf("-drive if=none,id=drv0,file=null-co://,"
+ "file.read-zeroes=on,format=raw "
"-device virtio-blk-ccw,drive=drv0");
qtest_end();
}
@@ -78,8 +79,10 @@ static void virtio_scsi_nop(void)
static void virtio_scsi_hotplug(void)
{
- global_qtest = qtest_initf("-drive if=none,id=drv0,file=null-co://,format=raw "
- "-drive if=none,id=drv1,file=null-co://,format=raw "
+ global_qtest = qtest_initf("-drive if=none,id=drv0,file=null-co://,"
+ "file.read-zeroes=on,format=raw "
+ "-drive if=none,id=drv1,file=null-co://,"
+ "file.read-zeroes=on,format=raw "
"-device virtio-scsi-ccw "
"-device scsi-hd,drive=drv0");
qtest_qmp_device_add("scsi-hd", "scsihd", "{'drive': 'drv1'}");