Update tests/qemu-iotests cases for multi-platform support
cover Update tests/qemu-iotests cases for multi-platform support
Currently the qemu-iotest framework is focused on the x86 platform. The suite should be usable by other platforms as well. To enable multi-platform usage, this patch set enhances the framework scripts to address this. By using the default machine type of the platform one can add specific output files if it deviates from the default. Secondly, single test cases can be adjusted as well when e.g. devices have different names or are not supported at all.
Mao Chuan Li (9):
qemu-iotests: run qemu with -nodefaults
qemu-iotests: qemu machine type support
qemu-iotests: add core_pattern access functions
qemu-iotests: fix test 039
qemu-iotests: s390x: fix test 071
qemu-iotests: s390x: fix test 087
qemu-iotests: s390x: fix test 041
qemu-iotests: s390x: fix test 055
qemu-iotests: s390x: fix test 051
tests/qemu-iotests/039 | 3 + tests/qemu-iotests/041 | 6 + tests/qemu-iotests/051 | 91 +++++--- tests/qemu-iotests/051.s390-virtio.out | 377 +++++++++++++++++++++++++++++++++ tests/qemu-iotests/055 | 6 + tests/qemu-iotests/071.s390-virtio.out | 86 ++++++++ tests/qemu-iotests/087.s390-virtio.out | 68 ++++++ tests/qemu-iotests/check | 5 + tests/qemu-iotests/common | 1 + tests/qemu-iotests/common.config | 3 +- tests/qemu-iotests/common.qemu | 2 +- tests/qemu-iotests/common.rc | 17 ++ tests/qemu-iotests/iotests.py | 1 + 13 files changed, 635 insertions(+), 31 deletions(-) create mode 100644 tests/qemu-iotests/051.s390-virtio.out create mode 100644 tests/qemu-iotests/071.s390-virtio.out create mode 100644 tests/qemu-iotests/087.s390-virtio.out
Signature · 1 line
1.9.3
RFC PATCH 1/9 qemu-iotests: run qemu with -nodefaults
This patch fixes an io test suite issue that was introduced with the commit c88930a6866e74953e931ae749781e98e486e5c8 'qemu-char: Permit only a single "stdio" character device'. The option supresses the creation of default devices.
--- tests/qemu-iotests/common | 1 + tests/qemu-iotests/common.config | 2 +- tests/qemu-iotests/common.qemu | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-)
tests/qemu-iotests/common +1 -0
@@ -51,6 +51,7 @@ export IMGOPTS="" export CACHEMODE="writeback" export QEMU_IO_OPTIONS="" export CACHEMODE_IS_DEFAULT=true +export QEMU_OPTIONS="-nodefaults" for r do
tests/qemu-iotests/common.config +1 -1
@@ -103,7 +103,7 @@ if [ -z "$QEMU_NBD_PROG" ]; then export QEMU_NBD_PROG="`set_prog_path qemu-nbd`" fi -export QEMU=$QEMU_PROG +export QEMU="$QEMU_PROG $QEMU_OPTIONS" export QEMU_IMG=$QEMU_IMG_PROG export QEMU_IO="$QEMU_IO_PROG $QEMU_IO_OPTIONS" export QEMU_NBD=$QEMU_NBD_PROG
tests/qemu-iotests/common.qemu +1 -1
@@ -153,7 +153,7 @@ function _launch_qemu() mkfifo "${fifo_out}" mkfifo "${fifo_in}" - "${QEMU}" -nographic -serial none ${comm} -machine accel=qtest "${@}" 2>&1 \ + ${QEMU} -nographic -serial none ${comm} -machine accel=qtest "${@}" 2>&1 \ >"${fifo_out}" \ <"${fifo_in}" & QEMU_PID[${_QEMU_HANDLE}]=$!
Signature · 1 line
1.9.3
RFC PATCH 2/9 qemu-iotests: qemu machine type support
In reply to Mao Chuan LiThis patch adds qemu machine type support to the io test suite. Based on the qemu default machine type the reference output file can now vary from the default to a machine specific output file if necessary. That shall allow all platforms to use this test suite.
--- tests/qemu-iotests/check | 5 +++++ tests/qemu-iotests/common.config | 1 + tests/qemu-iotests/iotests.py | 1 + 3 files changed, 7 insertions(+)
tests/qemu-iotests/check +5 -0
@@ -323,6 +323,11 @@ do fi reference="$source_iotests/$seq.out" + reference_machine="$source_iotests/$seq.$QEMU_DEFAULT_MACHINE.out" + if [ -f $reference_machine ]; then + reference=$reference_machine + fi + if [ "$CACHEMODE" = "none" ]; then [ -f "$source_iotests/$seq.out.nocache" ] && reference="$source_iotests/$seq.out.nocache" fi
tests/qemu-iotests/common.config +1 -0
@@ -107,6 +107,7 @@ export QEMU="$QEMU_PROG $QEMU_OPTIONS" export QEMU_IMG=$QEMU_IMG_PROG export QEMU_IO="$QEMU_IO_PROG $QEMU_IO_OPTIONS" export QEMU_NBD=$QEMU_NBD_PROG +export QEMU_DEFAULT_MACHINE=$($QEMU -machine ? | awk '/(default)/{print $1}') [ -f /etc/qemu-iotest.config ] && . /etc/qemu-iotest.config
tests/qemu-iotests/iotests.py +1 -0
@@ -39,6 +39,7 @@ imgproto = os.environ.get('IMGPROTO', 'file') test_dir = os.environ.get('TEST_DIR', '/var/tmp') output_dir = os.environ.get('OUTPUT_DIR', '.') cachemode = os.environ.get('CACHEMODE') +qemu_default_machine = os.environ.get('QEMU_DEFAULT_MACHINE') socket_scm_helper = os.environ.get('SOCKET_SCM_HELPER', 'socket_scm_helper')
Signature · 1 line
1.9.3
RFC PATCH 3/9 qemu-iotests: add core_pattern access functions
In reply to Mao Chuan LiTo prevent core dump file generation, the new functions allow to clear and restore the /proc/sys/kernel/core_pattern definition.
--- tests/qemu-iotests/common.rc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
tests/qemu-iotests/common.rc +17 -0
@@ -478,5 +478,22 @@ _die() exit 1 } +core_pattern_file="/proc/sys/kernel/core_pattern" + +_erase_core_pattern() +{ + saved_pattern=$(cat $core_pattern_file) + + echo > "$core_pattern_file" + if [ $? != 0 ]; then + exit 1 + fi +} + +_restore_core_pattern() +{ + echo $saved_pattern > $core_pattern_file +} + # make sure this script returns success /bin/true
Signature · 1 line
1.9.3
RFC PATCH 4/9 qemu-iotests: fix test 039
In reply to Mao Chuan LiFor successful execution of case 039, core dump need be disabled. Just running "ulimit -c 0" command is not enough when the /proc/sys/kernel/core_pattern indicates to pipe the dump to another application. So we must erase the pattern in addition to the ulimit command.
--- tests/qemu-iotests/039 | 3 +++ 1 file changed, 3 insertions(+)
tests/qemu-iotests/039 +3 -0
@@ -34,6 +34,7 @@ status=1 # failure is the default! _cleanup() { _cleanup_test_img + _restore_core_pattern } trap "_cleanup; exit \$status" 0 1 2 3 15
@@ -41,6 +42,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.rc . ./common.filter +_erase_core_pattern + _supported_fmt qcow2 _supported_proto file _supported_os Linux
Signature · 1 line
1.9.3
Re: [Qemu-devel] [PATCH v1 RFC 4/9] qemu-iotests: fix test 039
Quoted 25 lines · Mao Chuan Li
For successful execution of case 039, core dump need be disabled. Just running "ulimit -c 0" command is not enough when the
/proc/sys/kernel/core_patternindicates to pipe the dump to another application. So we must erase the pattern in addition to the ulimit command.Reviewed-by Michael Mueller <[email protected]>Signed-off-by Mao Chuan Li <[email protected]>--- tests/qemu-iotests/039 | 3 +++ 1 file changed, 3 insertions(+)tests/qemu-iotests/039 +1
-0@@ -34,6 +34,7 @@ status=1 # failure is the default! _cleanup() { _cleanup_test_img + _restore_core_pattern } trap "_cleanup; exit \$status" 0 1 2 3 15
tests/qemu-iotests/039 trap "_cleanup; exit \$status" 0 1 2 3 15 · line 49
Quoted 8 lines
tests/qemu-iotests/039 +2
-0@@ -41,6 +42,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.rc . ./common.filter +_erase_core_pattern + _supported_fmt qcow2 _supported_proto file _supported_os Linux
Do you really want the user to be root to execute the iotests?
Max
Re: [Qemu-devel] [PATCH v1 RFC 4/9] qemu-iotests: fix test 039
In reply to Mao Chuan LiQuoted 25 lines · On Thu, 13 Nov 2014 18:36:56 +0800 Mao Chuan Li <[email protected]>…
For successful execution of case 039, core dump need be disabled. Just running "ulimit -c 0" command is not enough when the
/proc/sys/kernel/core_patternindicates to pipe the dump to another application. So we must erase the pattern in addition to the ulimit command.Reviewed-by Michael Mueller <[email protected]>Signed-off-by Mao Chuan Li <[email protected]>--- tests/qemu-iotests/039 | 3 +++ 1 file changed, 3 insertions(+)tests/qemu-iotests/039 +1
-0@@ -34,6 +34,7 @@ status=1 # failure is the default! _cleanup() { _cleanup_test_img + _restore_core_pattern } trap "_cleanup; exit \$status" 0 1 2 3 15
tests/qemu-iotests/039 trap "_cleanup; exit \$status" 0 1 2 3 15 · line 49
Quoted 8 lines
tests/qemu-iotests/039 +2
-0@@ -41,6 +42,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.rc . ./common.filter +_erase_core_pattern + _supported_fmt qcow2 _supported_proto file _supported_os Linux
Mao,
you can skip this a and the previous (3/9) patch from the series, please have a look to the patch Max has posted to solve the issue.
Thanks
Michael
RFC PATCH 5/9 qemu-iotests: s390x: fix test 071
In reply to Mao Chuan LiAll the commands run by this test case are suitable for the s390 platform. But the commands in this case produce slightly different output compared to the default x86_64 platform.
--- tests/qemu-iotests/071.s390-virtio.out | 86 ++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 tests/qemu-iotests/071.s390-virtio.out
tests/qemu-iotests/071.s390-virtio.out new file +86 -0
@@ -0,0 +1,86 @@ +QA output created by 071 + +=== Testing blkverify through filename === + +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 +read 512/512 bytes at offset 0 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 512/512 bytes at offset 229376 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +read 512/512 bytes at offset 229376 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 512/512 bytes at offset 0 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +blkverify: read sector_num=0 nb_sectors=4 contents mismatch in sector 0 + +=== Testing blkverify through file blockref === + +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 +read 512/512 bytes at offset 0 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 512/512 bytes at offset 229376 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +read 512/512 bytes at offset 229376 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 512/512 bytes at offset 0 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +blkverify: read sector_num=0 nb_sectors=4 contents mismatch in sector 0 + +=== Testing blkdebug through filename === + +read failed: Input/output error + +=== Testing blkdebug through file blockref === + +read failed: Input/output error + +=== Testing blkdebug on existing block device === + +Testing: -drive file=TEST_DIR/t.IMGFMT,format=raw,if=none,id=drive0 +QMP_VERSION +{"return": {}} +{"return": {}} +read failed: Input/output error +{"return": ""} +{"return": {}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"} + + +=== Testing blkverify on existing block device === + +Testing: -drive file=TEST_DIR/t.IMGFMT,format=IMGFMT,if=none,id=drive0 +QMP_VERSION +{"return": {}} +{"return": {}} +blkverify: read sector_num=0 nb_sectors=1 contents mismatch in sector 0 + + +=== Testing blkverify on existing raw block device === + +Testing: -drive file=TEST_DIR/t.IMGFMT.base,if=none,id=drive0 +QMP_VERSION +{"return": {}} +{"return": {}} +blkverify: read sector_num=0 nb_sectors=1 contents mismatch in sector 0 + + +=== Testing blkdebug's set-state through QMP === + +Testing: -drive file=TEST_DIR/t.IMGFMT,format=raw,if=none,id=drive0 +QMP_VERSION +{"return": {}} +{"return": {}} +read 512/512 bytes at offset 0 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +{"return": ""} +wrote 512/512 bytes at offset 0 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +{"return": ""} +read failed: Input/output error +{"return": ""} +{"return": {}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"} + +*** done
Signature · 1 line
1.9.3
RFC PATCH 6/9 qemu-iotests: s390x: fix test 087
In reply to Mao Chuan LiAll the commands run by this test case are suitable for the s390 platform. But the commands in this case produce slightly different output compared to the default x86_64 platform.
--- tests/qemu-iotests/087.s390-virtio.out | 68 ++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 tests/qemu-iotests/087.s390-virtio.out
tests/qemu-iotests/087.s390-virtio.out new file +68 -0
@@ -0,0 +1,68 @@ +QA output created by 087 +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 + +=== Missing ID === + +Testing: +QMP_VERSION +{"return": {}} +{"error": {"class": "GenericError", "desc": "Block device needs an ID"}} +{"return": {}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"} + + +=== Duplicate ID === + +Testing: +QMP_VERSION +{"return": {}} +{"return": {}} +{"error": {"class": "GenericError", "desc": "Device with id 'disk' already exists"}} +{"error": {"class": "GenericError", "desc": "Device name 'test-node' conflicts with an existing node name"}} +main-loop: WARNING: I/O thread spun for 1000 iterations +{"error": {"class": "GenericError", "desc": "could not open disk image disk2: node-name=disk is conflicting with a device id"}} +{"error": {"class": "GenericError", "desc": "could not open disk image disk2: Duplicate node name"}} +{"error": {"class": "GenericError", "desc": "could not open disk image disk3: node-name=disk3 is conflicting with a device id"}} +{"return": {}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"} + + +=== aio=native without O_DIRECT === + +Testing: +QMP_VERSION +{"return": {}} +{"error": {"class": "GenericError", "desc": "aio=native requires cache.direct=true"}} +{"return": {}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"} + + +=== Encrypted image === + +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 encryption=on +Testing: -S +QMP_VERSION +{"return": {}} +{"error": {"class": "GenericError", "desc": "blockdev-add doesn't support encrypted devices"}} +{"return": {}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"} + +Testing: +QMP_VERSION +{"return": {}} +{"error": {"class": "GenericError", "desc": "could not open disk image disk: Guest must be stopped for opening of encrypted image"}} +{"return": {}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"} + + +=== Missing driver === + +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 encryption=on +Testing: -S +QMP_VERSION +{"return": {}} +{"error": {"class": "GenericError", "desc": "Invalid parameter type for 'driver', expected: string"}} +{"return": {}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"} + +*** done
Signature · 1 line
1.9.3
RFC PATCH 7/9 qemu-iotests: s390x: fix test 041
In reply to Mao Chuan LiThere is no such device 'ide-cd' defined on the s390 platform, so test_medium_not_found() test is skipped.
--- tests/qemu-iotests/041 | 6 ++++++ 1 file changed, 6 insertions(+)
tests/qemu-iotests/041 +6 -0
@@ -197,6 +197,9 @@ class TestSingleDrive(ImageMirroringTestCase): 'target image does not match source after mirroring') def test_medium_not_found(self): + if iotests.qemu_default_machine == 's390-virtio': + return + result = self.vm.qmp('drive-mirror', device='ide1-cd0', sync='full', target=target_img) self.assert_qmp(result, 'error/class', 'GenericError')
@@ -867,6 +870,9 @@ class TestRepairQuorum(ImageMirroringTestCase): if not self.has_quorum(): return + if iotests.qemu_default_machine == 's390-virtio': + return + result = self.vm.qmp('drive-mirror', device='ide1-cd0', sync='full', node_name='repair0', replaces='img1',
Signature · 1 line
1.9.3
RFC PATCH 8/9 qemu-iotests: s390x: fix test 055
In reply to Mao Chuan LiThere is no such device 'ide-cd' defined on the s390 platform, so test_medium_not_found() test is skipped.
--- tests/qemu-iotests/055 | 6 ++++++ 1 file changed, 6 insertions(+)
tests/qemu-iotests/055 +6 -0
@@ -90,6 +90,9 @@ class TestSingleDrive(iotests.QMPTestCase): 'target image does not match source after backup') def test_medium_not_found(self): + if iotests.qemu_default_machine == 's390-virtio': + return + result = self.vm.qmp('drive-backup', device='ide1-cd0', target=target_img, sync='full') self.assert_qmp(result, 'error/class', 'GenericError')
@@ -252,6 +255,9 @@ class TestSingleTransaction(iotests.QMPTestCase): 'target image does not match source after backup') def test_medium_not_found(self): + if iotests.qemu_default_machine == 's390-virtio': + return + result = self.vm.qmp('transaction', actions=[{ 'type': 'drive-backup', 'data': { 'device': 'ide1-cd0',
Signature · 1 line
1.9.3
RFC PATCH 9/9 qemu-iotests: s390x: fix test 051
In reply to Mao Chuan LiThe tests for device type "ide_cd" are skipped for the s390 platform. The default device id of hard disk on the s390 platform differs to that of the x86 platform. A new variable device_id is defined and "virtio0" set for the s390 platform. A s390 platform specific output file is also needed.
--- tests/qemu-iotests/051 | 91 +++++--- tests/qemu-iotests/051.s390-virtio.out | 377 +++++++++++++++++++++++++++++++++ 2 files changed, 439 insertions(+), 29 deletions(-) create mode 100644 tests/qemu-iotests/051.s390-virtio.out
tests/qemu-iotests/051 +62 -29
@@ -137,13 +137,19 @@ run_qemu -drive if=ide run_qemu -drive if=virtio run_qemu -drive if=scsi -run_qemu -drive if=none,id=disk -device ide-cd,drive=disk -run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk - -run_qemu -drive if=none,id=disk -device ide-drive,drive=disk -run_qemu -drive if=none,id=disk -device ide-hd,drive=disk -run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk -run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk +case "$QEMU_DEFAULT_MACHINE" in + s390-virtio) + ;; + *) + run_qemu -drive if=none,id=disk -device ide-cd,drive=disk + run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk + + run_qemu -drive if=none,id=disk -device ide-drive,drive=disk + run_qemu -drive if=none,id=disk -device ide-hd,drive=disk + run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk + run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk + ;; +esac echo echo === Read-only ===
@@ -157,13 +163,19 @@ run_qemu -drive file="$TEST_IMG",if=ide,readonly=on run_qemu -drive file="$TEST_IMG",if=virtio,readonly=on run_qemu -drive file="$TEST_IMG",if=scsi,readonly=on -run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-cd,drive=disk -run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk +case "$QEMU_DEFAULT_MACHINE" in + s390-virtio) + ;; + *) + run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-cd,drive=disk + run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk -run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-drive,drive=disk -run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-hd,drive=disk -run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk -run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk + run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-drive,drive=disk + run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-hd,drive=disk + run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk + run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk + ;; +esac echo echo === Cache modes ===
@@ -172,12 +184,24 @@ echo # Cannot use the test image because cache=none might not work on the host FS # Use cdrom so that we won't get errors about missing media -run_qemu -drive media=cdrom,cache=none -run_qemu -drive media=cdrom,cache=directsync -run_qemu -drive media=cdrom,cache=writeback -run_qemu -drive media=cdrom,cache=writethrough -run_qemu -drive media=cdrom,cache=unsafe -run_qemu -drive media=cdrom,cache=invalid_value +case "$QEMU_DEFAULT_MACHINE" in + s390-virtio) + run_qemu -drive if=scsi,media=cdrom,cache=none + run_qemu -drive if=scsi,media=cdrom,cache=directsync + run_qemu -drive if=scsi,media=cdrom,cache=writeback + run_qemu -drive if=scsi,media=cdrom,cache=writethrough + run_qemu -drive if=scsi,media=cdrom,cache=unsafe + run_qemu -drive if=scsi,media=cdrom,cache=invalid_value + ;; + *) + run_qemu -drive media=cdrom,cache=none + run_qemu -drive media=cdrom,cache=directsync + run_qemu -drive media=cdrom,cache=writeback + run_qemu -drive media=cdrom,cache=writethrough + run_qemu -drive media=cdrom,cache=unsafe + run_qemu -drive media=cdrom,cache=invalid_value + ;; +esac echo echo === Specifying the protocol layer ===
@@ -241,28 +265,37 @@ echo echo === Snapshot mode === echo +case "$QEMU_DEFAULT_MACHINE" in + s390-virtio) + device_id="virtio0" + ;; + *) + device_id="ide0-hd0" + ;; +esac + $QEMU_IO -c "write -P 0x11 0 4k" "$TEST_IMG" | _filter_qemu_io -echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="$TEST_IMG" -snapshot | _filter_qemu_io -echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io -echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file.filename="$TEST_IMG",driver=qcow2,snapshot=on | _filter_qemu_io -echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file.filename="$TEST_IMG",driver=qcow2 -snapshot | _filter_qemu_io -echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="file:$TEST_IMG" -snapshot | _filter_qemu_io -echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="file:$TEST_IMG",snapshot=on | _filter_qemu_io +echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="$TEST_IMG" -snapshot | _filter_qemu_io +echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io +echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file.filename="$TEST_IMG",driver=qcow2,snapshot=on | _filter_qemu_io +echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file.filename="$TEST_IMG",driver=qcow2 -snapshot | _filter_qemu_io +echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="file:$TEST_IMG" -snapshot | _filter_qemu_io +echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="file:$TEST_IMG",snapshot=on | _filter_qemu_io # Opening a read-only file r/w with snapshot=on chmod u-w "$TEST_IMG" -echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="$TEST_IMG" -snapshot | _filter_qemu_io -echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io +echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="$TEST_IMG" -snapshot | _filter_qemu_io +echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io chmod u+w "$TEST_IMG" $QEMU_IO -c "read -P 0x11 0 4k" "$TEST_IMG" | _filter_qemu_io -echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="$TEST_IMG",snapshot=off | _filter_qemu_io +echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="$TEST_IMG",snapshot=off | _filter_qemu_io $QEMU_IO -c "read -P 0x22 0 4k" "$TEST_IMG" | _filter_qemu_io -echo -e 'qemu-io ide0-hd0 "write -P 0x33 0 4k"\ncommit ide0-hd0' | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io +echo -e "qemu-io $device_id \"write -P 0x33 0 4k\"\ncommit $device_id" | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io $QEMU_IO -c "read -P 0x33 0 4k" "$TEST_IMG" | _filter_qemu_io
tests/qemu-iotests/051.s390-virtio.out new file +302 -0
302 lines not on this page · raw message
[D[Dqemu-io virtio0 "write[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x2[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr! ite -P 0x22 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k"[K
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
+
+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) q[K[Dqe[K[D[Dqem[K[D[D[Dqemu[K[D[D[D[Dqemu-[K[D[D[D[D[Dqemu-i[K[D[D[D[D[D[Dqemu-io[K[D[D[D[D[D[D[Dqemu-io [K[D[D[D[D[D[D[D[Dqemu-io v[K[D[D[D[D[D[D[D[D[Dqemu-io vi[K[D[D[D[D[D[D[D[D[D[Dqemu-io vir[K[D[D[D[D[D[D[D[D[D[D[Dqemu-io virt[K[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virti[K[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio[K[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "w[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wri[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "writ[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D!
[D[Dqemu-io virtio0 "write[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x2[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr! ite -P 0x22 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k"[K
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
+
+Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) q[K[Dqe[K[D[Dqem[K[D[D[Dqemu[K[D[D[D[Dqemu-[K[D[D[D[D[Dqemu-i[K[D[D[D[D[D[Dqemu-io[K[D[D[D[D[D[D[Dqemu-io [K[D[D[D[D[D[D[D[Dqemu-io v[K[D[D[D[D[D[D[D[D[Dqemu-io vi[K[D[D[D[D[D[D[D[D[D[Dqemu-io vir[K[D[D[D[D[D[D[D[D[D[D[Dqemu-io virt[K[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virti[K[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio[K[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "w[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wri[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "writ[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D!
[D[Dqemu-io virtio0 "write[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x2[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr! ite -P 0x22 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k"[K
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
+
+Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2 -snapshot
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) q[K[Dqe[K[D[Dqem[K[D[D[Dqemu[K[D[D[D[Dqemu-[K[D[D[D[D[Dqemu-i[K[D[D[D[D[D[Dqemu-io[K[D[D[D[D[D[D[Dqemu-io [K[D[D[D[D[D[D[D[Dqemu-io v[K[D[D[D[D[D[D[D[D[Dqemu-io vi[K[D[D[D[D[D[D[D[D[D[Dqemu-io vir[K[D[D[D[D[D[D[D[D[D[D[Dqemu-io virt[K[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virti[K[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio[K[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "w[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wri[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "writ[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D!
[D[Dqemu-io virtio0 "write[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x2[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr! ite -P 0x22 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k"[K
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
+
+Testing: -drive file=file:TEST_DIR/t.qcow2 -snapshot
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) q[K[Dqe[K[D[Dqem[K[D[D[Dqemu[K[D[D[D[Dqemu-[K[D[D[D[D[Dqemu-i[K[D[D[D[D[D[Dqemu-io[K[D[D[D[D[D[D[Dqemu-io [K[D[D[D[D[D[D[D[Dqemu-io v[K[D[D[D[D[D[D[D[D[Dqemu-io vi[K[D[D[D[D[D[D[D[D[D[Dqemu-io vir[K[D[D[D[D[D[D[D[D[D[D[Dqemu-io virt[K[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virti[K[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio[K[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "w[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wri[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "writ[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D!
[D[Dqemu-io virtio0 "write[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x2[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr! ite -P 0x22 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k"[K
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
+
+Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) q[K[Dqe[K[D[Dqem[K[D[D[Dqemu[K[D[D[D[Dqemu-[K[D[D[D[D[Dqemu-i[K[D[D[D[D[D[Dqemu-io[K[D[D[D[D[D[D[Dqemu-io [K[D[D[D[D[D[D[D[Dqemu-io v[K[D[D[D[D[D[D[D[D[Dqemu-io vi[K[D[D[D[D[D[D[D[D[D[Dqemu-io vir[K[D[D[D[D[D[D[D[D[D[D[Dqemu-io virt[K[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virti[K[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio[K[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "w[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wri[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "writ[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D!
[D[Dqemu-io virtio0 "write[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x2[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr! ite -P 0x22 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k"[K
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
+
+Testing: -drive file=TEST_DIR/t.qcow2 -snapshot
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) q[K[Dqe[K[D[Dqem[K[D[D[Dqemu[K[D[D[D[Dqemu-[K[D[D[D[D[Dqemu-i[K[D[D[D[D[D[Dqemu-io[K[D[D[D[D[D[D[Dqemu-io [K[D[D[D[D[D[D[D[Dqemu-io v[K[D[D[D[D[D[D[D[D[Dqemu-io vi[K[D[D[D[D[D[D[D[D[D[Dqemu-io vir[K[D[D[D[D[D[D[D[D[D[D[Dqemu-io virt[K[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virti[K[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio[K[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "w[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wri[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "writ[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D!
[D[Dqemu-io virtio0 "write[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x2[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr! ite -P 0x22 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k"[K
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
+
+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) q[K[Dqe[K[D[Dqem[K[D[D[Dqemu[K[D[D[D[Dqemu-[K[D[D[D[D[Dqemu-i[K[D[D[D[D[D[Dqemu-io[K[D[D[D[D[D[D[Dqemu-io [K[D[D[D[D[D[D[D[Dqemu-io v[K[D[D[D[D[D[D[D[D[Dqemu-io vi[K[D[D[D[D[D[D[D[D[D[Dqemu-io vir[K[D[D[D[D[D[D[D[D[D[D[Dqemu-io virt[K[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virti[K[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio[K[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "w[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wri[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "writ[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D!
[D[Dqemu-io virtio0 "write[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x2[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr! ite -P 0x22 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k"[K
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
+
+read 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) q[K[Dqe[K[D[Dqem[K[D[D[Dqemu[K[D[D[D[Dqemu-[K[D[D[D[D[Dqemu-i[K[D[D[D[D[D[Dqemu-io[K[D[D[D[D[D[D[Dqemu-io [K[D[D[D[D[D[D[D[Dqemu-io v[K[D[D[D[D[D[D[D[D[Dqemu-io vi[K[D[D[D[D[D[D[D[D[D[Dqemu-io vir[K[D[D[D[D[D[D[D[D[D[D[Dqemu-io virt[K[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virti[K[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio[K[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "w[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wri[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "writ[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D!
[D[Dqemu-io virtio0 "write[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x2[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr! ite -P 0x22 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x22 0 4k"[K
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
+
+read 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) q[K[Dqe[K[D[Dqem[K[D[D[Dqemu[K[D[D[D[Dqemu-[K[D[D[D[D[Dqemu-i[K[D[D[D[D[D[Dqemu-io[K[D[D[D[D[D[D[Dqemu-io [K[D[D[D[D[D[D[D[Dqemu-io v[K[D[D[D[D[D[D[D[D[Dqemu-io vi[K[D[D[D[D[D[D[D[D[D[Dqemu-io vir[K[D[D[D[D[D[D[D[D[D[D[Dqemu-io virt[K[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virti[K[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio[K[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "w[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wri[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "writ[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D!
[D[Dqemu-io virtio0 "write[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x3[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x33[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "wr! ite -P 0x33 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x33 0[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x33 0 [K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x33 0 4[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x33 0 4k[K[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dqemu-io virtio0 "write -P 0x33 0 4k"[K
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) c[K[Dco[K[D[Dcom[K[D[D[Dcomm[K[D[D[D[Dcommi[K[D[D[D[D[Dcommit[K[D[D[D[D[D[Dcommit [K[D[D[D[D[D[D[Dcommit v[K[D[D[D[D[D[D[D[Dcommit vi[K[D[D[D[D[D[D[D[D[Dcommit vir[K[D[D[D[D[D[D[D[D[D[Dcommit virt[K[D[D[D[D[D[D[D[D[D[D[Dcommit virti[K[D[D[D[D[D[D[D[D[D[D[D[Dcommit virtio[K[D[D[D[D[D[D[D[D[D[D[D[D[Dcommit virtio0[K
+(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
+
+read 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+*** done
Signature · 1 line
1.9.3
Quoted 5 lines · Mao Chuan Li
Currently the qemu-iotest framework is focused on the x86 platform. The suite should be usable by other platforms as well. To enable multi-platform usage, this patch set enhances the framework scripts to address this. By using the default machine type of the platform one can add specific output files if it deviates from the default. Secondly, single test cases can be adjusted as well when e.g. devices have different names or are not supported at all.
Quoted 8 lines
Mao Chuan Li (9):
qemu-iotests: run qemu with -nodefaults
qemu-iotests: qemu machine type support
qemu-iotests: addcore_patternaccess functions
qemu-iotests: fix test 039qemu-iotests: s390x: fix test 071 qemu-iotests: s390x: fix test 087
To me, the main difference between the current test output and the new s390-specific seems to be lines about CD and floppy disk; due to patch 1, they are gone from x86 as well, though. Therefore, we don't need special s390 output, but need to apply the changes directly to 071.out and 087.out.
Furthermore, after patch 1, tests 067 and 091 fail for me on x86, too. I don't know why 091 fails, but 067 fails because CD and floppy are missing from the block-query result and the DEVICE_TRAY_MOVED events are missing from QMP output in general (which is completely fine, we just need to adjust the reference output accordingly).
Max
Quoted 3 lines
qemu-iotests: s390x: fix test 041 qemu-iotests: s390x: fix test 055 qemu-iotests: s390x: fix test 051
Quoted 12 lines · Max Reitz
Quoted 10 lines · Mao Chuan Li
Currently the qemu-iotest framework is focused on the x86 platform. The suite should be usable by other platforms as well. To enable multi-platform usage, this patch set enhances the framework scripts to address this. By using the default machine type of the platform one can add specific output files if it deviates from the default. Secondly, single test cases can be adjusted as well when e.g. devices have different names or are not supported at all.
Mao Chuan Li (9):
qemu-iotests: run qemu with -nodefaults
qemu-iotests: qemu machine type support
qemu-iotests: addcore_patternaccess functions
qemu-iotests: fix test 039
Quoted 6 lines
Quoted 2 lines
qemu-iotests: s390x: fix test 071 qemu-iotests: s390x: fix test 087To me, the main difference between the current test output and the new s390-specific seems to be lines about CD and floppy disk; due to patch 1, they are gone from x86 as well, though. Therefore, we don't need special s390 output, but need to apply the changes directly to 071.out and 087.out.
Furthermore, after patch 1, tests 067 and 091 fail for me on x86, too. I don't know why 091 fails, but 067 fails because CD and floppy are missing from the block-query result and the
DEVICE_TRAY_MOVEDevents are missing from QMP output in general (which is completely fine, we just need to adjust the reference output accordingly).
Ah, I know why 091 failed. I forgot -c writethrough and ran it in /tmp. My bad. So it's only 067 that needs fixing.
Max
Quoted 13 lines · On Thu, 27 Nov 2014 10:30:33 +0100 Max Reitz <[email protected]> wrote:
Quoted 11 lines · Mao Chuan Li
Currently the qemu-iotest framework is focused on the x86 platform. The suite should be usable by other platforms as well. To enable multi-platform usage, this patch set enhances the framework scripts to address this. By using the default machine type of the platform one can add specific output files if it deviates from the default. Secondly, single test cases can be adjusted as well when e.g. devices have different names or are not supported at all.
Mao Chuan Li (9):
qemu-iotests: run qemu with -nodefaults
qemu-iotests: qemu machine type support
qemu-iotests: addcore_patternaccess functions
qemu-iotests: fix test 039
Quoted 8 lines
Quoted 2 lines
qemu-iotests: s390x: fix test 071 qemu-iotests: s390x: fix test 087To me, the main difference between the current test output and the new s390-specific seems to be lines about CD and floppy disk; due to patch 1, they are gone from x86 as well, though. Therefore, we don't need special s390 output, but need to apply the changes directly to 071.out and 087.out.
perfect, that's fully in our interest.
Quoted 13 lines
Furthermore, after patch 1, tests 067 and 091 fail for me on x86, too. I don't know why 091 fails, but 067 fails because CD and floppy are missing from the block-query result and the
DEVICE_TRAY_MOVEDevents are missing from QMP output in general (which is completely fine, we just need to adjust the reference output accordingly).Max
Quoted 3 lines
qemu-iotests: s390x: fix test 041 qemu-iotests: s390x: fix test 055 qemu-iotests: s390x: fix test 051
We have two more test 060 and 082 that fail with the following difference to the reference output. We analyzed it and it turns out that the size on disk is file system dependent. In our case it ran on a s390/ext3. Thus we think comparing the size on disk should be filtered. With other file system like ext4 or tmpfs we get also 196K. We don't want to enforce a specific file system to be used.
060 - output mismatch (see 060.out.bad)
060.out.bad renamed from home/mimu/prog/qemu/tests/qemu-iotests/060.out +1 -1
@@ -14,7 +14,7 @@ image: TEST_DIR/t.qcow2 file format: qcow2 virtual size: 64M (67108864 bytes) -disk size: 196K +disk size: 200K cluster_size: 65536 Format specific information: compat: 1.1
Would this be excaptable with replacing the out file
tests/qemu-iotests/060 +1 -1
@@ -77,7 +77,7 @@ $QEMU_IO -c "$OPEN_RW" -c "write -P 0x2a 0 512" | _filter_qemu_io $PYTHON qcow2.py "$TEST_IMG" dump-header | grep incompatible_features # This information should be available through qemu-img info -$QEMU_IMG info "$TEST_IMG" | _filter_testdir +$QEMU_IMG info "$TEST_IMG" | _filter_testdir | _filter_disk_size # Try to open the image R/W (which should fail) $QEMU_IO -c "$OPEN_RW" -c "read 0 512" 2>&1 | _filter_qemu_io \
tests/qemu-iotests/common.filter +5 -0
@@ -220,5 +220,10 @@ _filter_qemu_img_map() -e 's/Mapped to *//' | _filter_testdir | _filter_imgfmt } +_filter_disk_size() +{ + sed -e '/^disk size: .*$/d' +} + # make sure this script returns success /bin/true
Am 27.11.2014 um 12:08 hat Michael Mueller geschrieben:
Quoted 67 lines
Quoted 13 lines · On Thu, 27 Nov 2014 10:30:33 +0100 Max Reitz <[email protected]> wrote:
Quoted 11 lines · Mao Chuan Li
Currently the qemu-iotest framework is focused on the x86 platform. The suite should be usable by other platforms as well. To enable multi-platform usage, this patch set enhances the framework scripts to address this. By using the default machine type of the platform one can add specific output files if it deviates from the default. Secondly, single test cases can be adjusted as well when e.g. devices have different names or are not supported at all.
Mao Chuan Li (9):
qemu-iotests: run qemu with -nodefaults
qemu-iotests: qemu machine type support
qemu-iotests: addcore_patternaccess functions
qemu-iotests: fix test 039Quoted 8 lines
Quoted 2 lines
qemu-iotests: s390x: fix test 071 qemu-iotests: s390x: fix test 087To me, the main difference between the current test output and the new s390-specific seems to be lines about CD and floppy disk; due to patch 1, they are gone from x86 as well, though. Therefore, we don't need special s390 output, but need to apply the changes directly to 071.out and 087.out.
perfect, that's fully in our interest.
Quoted 13 lines
Furthermore, after patch 1, tests 067 and 091 fail for me on x86, too. I don't know why 091 fails, but 067 fails because CD and floppy are missing from the block-query result and the
DEVICE_TRAY_MOVEDevents are missing from QMP output in general (which is completely fine, we just need to adjust the reference output accordingly).Max
Quoted 3 lines
qemu-iotests: s390x: fix test 041 qemu-iotests: s390x: fix test 055 qemu-iotests: s390x: fix test 051We have two more test 060 and 082 that fail with the following difference to the reference output. We analyzed it and it turns out that the size on disk is file system dependent. In our case it ran on a s390/ext3. Thus we think comparing the size on disk should be filtered. With other file system like ext4 or tmpfs we get also 196K. We don't want to enforce a specific file system to be used.
060 - output mismatch (see 060.out.bad)
060.out.bad renamed from home/mimu/prog/qemu/tests/qemu-iotests/060.out +1
-1@@ -14,7 +14,7 @@ image: TEST_DIR/t.qcow2 file format: qcow2 virtual size: 64M (67108864 bytes) -disk size: 196K +disk size: 200K cluster_size: 65536 Format specific information: compat: 1.1Would this be excaptable with replacing the out file
tests/qemu-iotests/060 +0
-0
tests/qemu-iotests/060 $QEMU_IO -c "$OPEN_RW" -c "write -P 0x2a 0 512" | _filter_qemu_io · line 80
Quoted 5 lines
tests/qemu-iotests/060 +1
-1@@ -77,7 +77,7 @@ $QEMU_IO -c "$OPEN_RW" -c "write -P 0x2a 0 512" | _filter_qemu_io $PYTHON qcow2.py "$TEST_IMG" dump-header | grep incompatible_features # This information should be available through qemu-img info -$QEMU_IMG info "$TEST_IMG" | _filter_testdir +$QEMU_IMG info "$TEST_IMG" | _filter_testdir | _filter_disk_size
_img_info already filters the size out. The reason why it isn't used here is that it also filters all of the format specific information out. We could probably make that part optional and then reuse it here.
Kevin
Quoted 79 lines · On Thu, 27 Nov 2014 12:27:56 +0100 Kevin Wolf <[email protected]> wrote:
Am 27.11.2014 um 12:08 hat Michael Mueller geschrieben:
Quoted 68 lines
Quoted 14 lines · On Thu, 27 Nov 2014 10:30:33 +0100 Max Reitz <[email protected]> wrote:
Quoted 12 lines · Mao Chuan Li
Currently the qemu-iotest framework is focused on the x86 platform. The suite should be usable by other platforms as well. To enable multi-platform usage, this patch set enhances the framework scripts to address this. By using the default machine type of the platform one can add specific output files if it deviates from the default. Secondly, single test cases can be adjusted as well when e.g. devices have different names or are not supported at all.
Mao Chuan Li (9):
qemu-iotests: run qemu with -nodefaults
qemu-iotests: qemu machine type support
qemu-iotests: addcore_patternaccess functions
qemu-iotests: fix test 039Quoted 8 lines
Quoted 2 lines
qemu-iotests: s390x: fix test 071 qemu-iotests: s390x: fix test 087To me, the main difference between the current test output and the new s390-specific seems to be lines about CD and floppy disk; due to patch 1, they are gone from x86 as well, though. Therefore, we don't need special s390 output, but need to apply the changes directly to 071.out and 087.out.
perfect, that's fully in our interest.
Quoted 13 lines
Furthermore, after patch 1, tests 067 and 091 fail for me on x86, too. I don't know why 091 fails, but 067 fails because CD and floppy are missing from the block-query result and the
DEVICE_TRAY_MOVEDevents are missing from QMP output in general (which is completely fine, we just need to adjust the reference output accordingly).Max
Quoted 3 lines
qemu-iotests: s390x: fix test 041 qemu-iotests: s390x: fix test 055 qemu-iotests: s390x: fix test 051We have two more test 060 and 082 that fail with the following difference to the reference output. We analyzed it and it turns out that the size on disk is file system dependent. In our case it ran on a s390/ext3. Thus we think comparing the size on disk should be filtered. With other file system like ext4 or tmpfs we get also 196K. We don't want to enforce a specific file system to be used.
060 - output mismatch (see 060.out.bad)
060.out.bad renamed from home/mimu/prog/qemu/tests/qemu-iotests/060.out +1
-1@@ -14,7 +14,7 @@ image: TEST_DIR/t.qcow2 file format: qcow2 virtual size: 64M (67108864 bytes) -disk size: 196K +disk size: 200K cluster_size: 65536 Format specific information: compat: 1.1Would this be excaptable with replacing the out file
tests/qemu-iotests/060 +0
-0tests/qemu-iotests/060 $QEMU_IO -c "$OPEN_RW" -c "write -P 0x2a 0 512" | _filter_qemu_io · line 80
Quoted 5 lines
tests/qemu-iotests/060 +1
-1@@ -77,7 +77,7 @@ $QEMU_IO -c "$OPEN_RW" -c "write -P 0x2a 0 512" | _filter_qemu_io $PYTHON qcow2.py "$TEST_IMG" dump-header | grep incompatible_features # This information should be available through qemu-img info -$QEMU_IMG info "$TEST_IMG" | _filter_testdir +$QEMU_IMG info "$TEST_IMG" | _filter_testdir | _filter_disk_size
_img_infoalready filters the size out. The reason why it isn't used here is that it also filters all of the format specific information out. We could probably make that part optional and then reuse it here.
Quoted 1 line
Kevin
I'm not sure if this is the better solution then because one has to use a new global variable to provide the parameter:
tests/qemu-iotests/060 +1 -1
@@ -77,7 +77,7 @@ $QEMU_IO -c "$OPEN_RW" -c "write -P 0x2a 0 512" | _filter_qemu_io $PYTHON qcow2.py "$TEST_IMG" dump-header | grep incompatible_features # This information should be available through qemu-img info -$QEMU_IMG info "$TEST_IMG" | _filter_testdir | _filter_disk_size +args=ups _img_info | _filter_testdir # Try to open the image R/W (which should fail) $QEMU_IO -c "$OPEN_RW" -c "read 0 512" 2>&1 | _filter_qemu_io \
tests/qemu-iotests/common.rc +5 -0
@@ -213,6 +213,11 @@ _check_test_img() _img_info() { + if [ -n "$args" ]; then + $QEMU_IMG info "$@" "$TEST_IMG" 2>&1 | \ + sed -e "/^disk size:/ D" + return + fi discard=0 regex_json_spec_start='^ *"format-specific": \{' $QEMU_IMG info "$@" "$TEST_IMG" 2>&1 | \
Quoted 1 line
Am 27.11.2014 um 14:34 hat Michael Mueller geschrieben:
Quoted 82 lines
Quoted 79 lines · On Thu, 27 Nov 2014 12:27:56 +0100 Kevin Wolf <[email protected]> wrote:
Am 27.11.2014 um 12:08 hat Michael Mueller geschrieben:
Quoted 68 lines
Quoted 14 lines · On Thu, 27 Nov 2014 10:30:33 +0100 Max Reitz <[email protected]> wrote:
Quoted 12 lines · Mao Chuan Li
Currently the qemu-iotest framework is focused on the x86 platform. The suite should be usable by other platforms as well. To enable multi-platform usage, this patch set enhances the framework scripts to address this. By using the default machine type of the platform one can add specific output files if it deviates from the default. Secondly, single test cases can be adjusted as well when e.g. devices have different names or are not supported at all.
Mao Chuan Li (9):
qemu-iotests: run qemu with -nodefaults
qemu-iotests: qemu machine type support
qemu-iotests: addcore_patternaccess functions
qemu-iotests: fix test 039Quoted 8 lines
Quoted 2 lines
qemu-iotests: s390x: fix test 071 qemu-iotests: s390x: fix test 087To me, the main difference between the current test output and the new s390-specific seems to be lines about CD and floppy disk; due to patch 1, they are gone from x86 as well, though. Therefore, we don't need special s390 output, but need to apply the changes directly to 071.out and 087.out.
perfect, that's fully in our interest.
Quoted 13 lines
Furthermore, after patch 1, tests 067 and 091 fail for me on x86, too. I don't know why 091 fails, but 067 fails because CD and floppy are missing from the block-query result and the
DEVICE_TRAY_MOVEDevents are missing from QMP output in general (which is completely fine, we just need to adjust the reference output accordingly).Max
Quoted 3 lines
qemu-iotests: s390x: fix test 041 qemu-iotests: s390x: fix test 055 qemu-iotests: s390x: fix test 051We have two more test 060 and 082 that fail with the following difference to the reference output. We analyzed it and it turns out that the size on disk is file system dependent. In our case it ran on a s390/ext3. Thus we think comparing the size on disk should be filtered. With other file system like ext4 or tmpfs we get also 196K. We don't want to enforce a specific file system to be used.
060 - output mismatch (see 060.out.bad)
060.out.bad renamed from home/mimu/prog/qemu/tests/qemu-iotests/060.out +1
-1@@ -14,7 +14,7 @@ image: TEST_DIR/t.qcow2 file format: qcow2 virtual size: 64M (67108864 bytes) -disk size: 196K +disk size: 200K cluster_size: 65536 Format specific information: compat: 1.1Would this be excaptable with replacing the out file
tests/qemu-iotests/060 +0
-0tests/qemu-iotests/060 $QEMU_IO -c "$OPEN_RW" -c "write -P 0x2a 0 512" | _filter_qemu_io · line 80
Quoted 5 lines
tests/qemu-iotests/060 +1
-1@@ -77,7 +77,7 @@ $QEMU_IO -c "$OPEN_RW" -c "write -P 0x2a 0 512" | _filter_qemu_io $PYTHON qcow2.py "$TEST_IMG" dump-header | grep incompatible_features # This information should be available through qemu-img info -$QEMU_IMG info "$TEST_IMG" | _filter_testdir +$QEMU_IMG info "$TEST_IMG" | _filter_testdir | _filter_disk_size
_img_infoalready filters the size out. The reason why it isn't used here is that it also filters all of the format specific information out. We could probably make that part optional and then reuse it here.
Quoted 4 lines
Quoted 1 line
Kevin
I'm not sure if this is the better solution then because one has to use a new global variable to provide the parameter:
I was thinking along the lines of this (which leaves most of the filtering in place, it just doesn't strip the format-specific information):
tests/qemu-iotests/060 +1 -1
@@ -77,7 +77,7 @@ $QEMU_IO -c "$OPEN_RW" -c "write -P 0x2a 0 512" | _filter_qemu_io $PYTHON qcow2.py "$TEST_IMG" dump-header | grep incompatible_features # This information should be available through qemu-img info -$QEMU_IMG info "$TEST_IMG" | _filter_testdir +_img_info --format-specific # Try to open the image R/W (which should fail) $QEMU_IO -c "$OPEN_RW" -c "read 0 512" 2>&1 | _filter_qemu_io \
tests/qemu-iotests/common.rc +10 -1
@@ -213,6 +213,13 @@ _check_test_img() _img_info() { + if [[ "$1" == "--format-specific" ]]; then + local format_specific=1 + shift + else + local format_specific=0 + fi + discard=0 regex_json_spec_start='^ *"format-specific": \{' $QEMU_IMG info "$@" "$TEST_IMG" 2>&1 | \
@@ -222,7 +229,9 @@ _img_info() -e "/^disk size:/ D" \ -e "/actual-size/ D" | \ while IFS='' read line; do - if [[ $line == "Format specific information:" ]]; then + if [[ $format_specific == 1 ]]; then + discard=0 + elif [[ $line == "Format specific information:" ]]; then discard=1 elif [[ $line =~ $regex_json_spec_start ]]; then discard=2
Am 27.11.2014 um 15:03 hat Kevin Wolf geschrieben:
Quoted 85 lines
Am 27.11.2014 um 14:34 hat Michael Mueller geschrieben:
Quoted 84 lines
Quoted 80 lines · On Thu, 27 Nov 2014 12:27:56 +0100 Kevin Wolf <[email protected]> wrote:
Am 27.11.2014 um 12:08 hat Michael Mueller geschrieben:
Quoted 68 lines
Quoted 14 lines · On Thu, 27 Nov 2014 10:30:33 +0100 Max Reitz <[email protected]> wrote:
Quoted 12 lines · Mao Chuan Li
Currently the qemu-iotest framework is focused on the x86 platform. The suite should be usable by other platforms as well. To enable multi-platform usage, this patch set enhances the framework scripts to address this. By using the default machine type of the platform one can add specific output files if it deviates from the default. Secondly, single test cases can be adjusted as well when e.g. devices have different names or are not supported at all.
Mao Chuan Li (9):
qemu-iotests: run qemu with -nodefaults
qemu-iotests: qemu machine type support
qemu-iotests: addcore_patternaccess functions
qemu-iotests: fix test 039Quoted 8 lines
Quoted 2 lines
qemu-iotests: s390x: fix test 071 qemu-iotests: s390x: fix test 087To me, the main difference between the current test output and the new s390-specific seems to be lines about CD and floppy disk; due to patch 1, they are gone from x86 as well, though. Therefore, we don't need special s390 output, but need to apply the changes directly to 071.out and 087.out.
perfect, that's fully in our interest.
Quoted 13 lines
Furthermore, after patch 1, tests 067 and 091 fail for me on x86, too. I don't know why 091 fails, but 067 fails because CD and floppy are missing from the block-query result and the
DEVICE_TRAY_MOVEDevents are missing from QMP output in general (which is completely fine, we just need to adjust the reference output accordingly).Max
Quoted 3 lines
qemu-iotests: s390x: fix test 041 qemu-iotests: s390x: fix test 055 qemu-iotests: s390x: fix test 051We have two more test 060 and 082 that fail with the following difference to the reference output. We analyzed it and it turns out that the size on disk is file system dependent. In our case it ran on a s390/ext3. Thus we think comparing the size on disk should be filtered. With other file system like ext4 or tmpfs we get also 196K. We don't want to enforce a specific file system to be used.
060 - output mismatch (see 060.out.bad)
060.out.bad renamed from home/mimu/prog/qemu/tests/qemu-iotests/060.out +1
-1@@ -14,7 +14,7 @@ image: TEST_DIR/t.qcow2 file format: qcow2 virtual size: 64M (67108864 bytes) -disk size: 196K +disk size: 200K cluster_size: 65536 Format specific information: compat: 1.1Would this be excaptable with replacing the out file
tests/qemu-iotests/060 +0
-0tests/qemu-iotests/060 $QEMU_IO -c "$OPEN_RW" -c "write -P 0x2a 0 512" | _filter_qemu_io · line 80
Quoted 5 lines
tests/qemu-iotests/060 +1
-1@@ -77,7 +77,7 @@ $QEMU_IO -c "$OPEN_RW" -c "write -P 0x2a 0 512" | _filter_qemu_io $PYTHON qcow2.py "$TEST_IMG" dump-header | grep incompatible_features # This information should be available through qemu-img info -$QEMU_IMG info "$TEST_IMG" | _filter_testdir +$QEMU_IMG info "$TEST_IMG" | _filter_testdir | _filter_disk_size
_img_infoalready filters the size out. The reason why it isn't used here is that it also filters all of the format specific information out. We could probably make that part optional and then reuse it here.Kevin
Quoted 7 lines
Quoted 2 lines
I'm not sure if this is the better solution then because one has to use a new global variable to provide the parameter:
I was thinking along the lines of this (which leaves most of the filtering in place, it just doesn't strip the format-specific information):
[...]
Well, that was almost the complete patch, so I just did the rest as well and sent out "[PATCH] qemu-iotests: 060: Filter the real disk size".
Kevin