]> git.proxmox.com Git - mirror_qemu.git/commit
tests: in IDE and AHCI tests perform DMA write before flushing
authorEvgeny Yakovlev <eyakovlev@virtuozzo.com>
Mon, 18 Jul 2016 19:39:51 +0000 (22:39 +0300)
committerJohn Snow <jsnow@redhat.com>
Mon, 18 Jul 2016 22:19:01 +0000 (18:19 -0400)
commit2dd7e10d7c6ec6edbe610345cadd6ec82ee3e65f
tree0111cd8e3dafc516f9e9354aa96b4fda792b788d
parent35f78ab469b1d4ea4ff7ad4ffa997ae9ad3d4120
tests: in IDE and AHCI tests perform DMA write before flushing

Due to changes in flush behaviour clean disks stopped generating
flush_to_disk events and IDE and AHCI tests that test flush commands
started to fail.

This change adds additional DMA writes to affected tests before sending
flush commands so that bdrv_flush actually generates flush_to_disk event.

Signed-off-by: Evgeny Yakovlev <eyakovlev@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1468870792-7411-4-git-send-email-den@openvz.org
CC: Kevin Wolf <kwolf@redhat.com>
CC: Max Reitz <mreitz@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Fam Zheng <famz@redhat.com>
CC: John Snow <jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
tests/ahci-test.c
tests/ide-test.c