diff options
author | Andrey Shinkevich | 2019-07-29 14:46:00 +0200 |
---|---|---|
committer | Thomas Huth | 2019-08-15 19:23:59 +0200 |
commit | ca1ef1e62e581f61c40f8be49d222007739691c4 (patch) | |
tree | a44dd28fac7c1cbdd918227bac161b408983dd74 /tests/libqos | |
parent | libqos: Account for the ctrl queue in virtio-net (diff) | |
download | qemu-ca1ef1e62e581f61c40f8be49d222007739691c4.tar.gz qemu-ca1ef1e62e581f61c40f8be49d222007739691c4.tar.xz qemu-ca1ef1e62e581f61c40f8be49d222007739691c4.zip |
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/libqos')
-rw-r--r-- | tests/libqos/virtio-scsi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/libqos/virtio-scsi.c b/tests/libqos/virtio-scsi.c index 94842ec3fa..de739bec5f 100644 --- a/tests/libqos/virtio-scsi.c +++ b/tests/libqos/virtio-scsi.c @@ -95,7 +95,8 @@ static void virtio_scsi_register_nodes(void) }; QOSGraphEdgeOptions opts = { - .before_cmd_line = "-drive id=drv0,if=none,file=null-co://,format=raw", + .before_cmd_line = "-drive id=drv0,if=none,file=null-co://," + "file.read-zeroes=on,format=raw", .after_cmd_line = "-device scsi-hd,bus=vs0.0,drive=drv0", }; |