iotests: drop thread spun work-around
PATCH 1/1 iotests: drop thread spun work-around
We've disabled the warning, there should be no need for test to work around it.
---
This is on top of
main-loop: suppress warnings under qtest
I just tested this by running make check.
Is this enough?
tests/qemu-iotests/common.filter | 1 - 1 file changed, 1 deletion(-)
tests/qemu-iotests/common.filter +0 -1
@@ -164,7 +164,6 @@ _filter_qemu() { sed -e "s#\\(^\\|(qemu) \\)$(basename $QEMU_PROG):#\1QEMU_PROG:#" \ -e 's#^QEMU [0-9]\+\.[0-9]\+\.[0-9]\+ monitor#QEMU X.Y.Z monitor#' \ - -e '/main-loop: WARNING: I\/O thread spun for [0-9]\+ iterations/d' \ -e $'s#\r##' # QEMU monitor uses \r\n line endings }
Signature · 1 line
MST
Quoted 7 lines · Michael S. Tsirkin
We've disabled the warning, no need for test to work around it.
Signed-off-by Michael S. Tsirkin <[email protected]>--- tests/qemu-iotests/common.filter | 1 - 1 file changed, 1 deletion(-)
Thanks, I've applied the patch to my block branch:
https://github.com/XanClic/qemu/commits/block
Max
Quoted 11 lines · Michael S. Tsirkin
We've disabled the warning, there should be no need for test to work around it.
Signed-off-by Michael S. Tsirkin <[email protected]>---
This is on top of
main-loop: suppress warnings under qtestI just tested this by running make check.
Is this enough?
It should be, but I'm not sure why you want this patch for 2.5. Anyway:
Quoted 16 lines
tests/qemu-iotests/common.filter | 1 - 1 file changed, 1 deletion(-)tests/qemu-iotests/common.filter +0
-1@@ -164,7 +164,6 @@ _filter_qemu() { sed -e "s#\\(^\\|(qemu) \\)$(basename $QEMU_PROG):#\1QEMU_PROG:#" \ -e 's#^QEMU [0-9]\+\.[0-9]\+\.[0-9]\+ monitor#QEMU X.Y.Z monitor#' \ - -e '/main-loop: WARNING: I\/O thread spun for [0-9]\+ iterations/d' \ -e $'s#\r##' # QEMU monitor uses \r\n line endings }
Quoted 13 lines · Michael S. Tsirkin
We've disabled the warning, no need for test to work around it.
Signed-off-by Michael S. Tsirkin <[email protected]>--- tests/qemu-iotests/common.filter | 1 - 1 file changed, 1 deletion(-)tests/qemu-iotests/common.filter +0
-0
tests/qemu-iotests/common.filter _filter_qemu() · line 168
Quoted 6 lines
tests/qemu-iotests/common.filter +0
-1@@ -164,7 +164,6 @@ _filter_qemu() { sed -e "s#\\(^\\|(qemu) \\)$(basename $QEMU_PROG):#\1QEMU_PROG:#" \ -e 's#^QEMU [0-9]\+\.[0-9]\+\.[0-9]\+ monitor#QEMU X.Y.Z monitor#' \ - -e '/main-loop: WARNING: I\/O thread spun for [0-9]\+ iterations/d' \ -e $'s#\r##' # QEMU monitor uses \r\n line endings }
I'll have to drop this patch from my queue for now because I noticed the warnings reappearing. This is because the iotests only use -machine accel=qtest, but don't create any -qtest character device.
Commit 21a24302e85024dd7b2a151158adbc1f5dc5c4dd changed the behavior so that the warning will only be emitted if there is a -qtest character device, reasoning that there are tests that do not use the qtest accelerator but just the character device. However, this has the downside of actually printing the warning if qemu is run only under the qtest accelerator, without a -qtest chardev.
I've sent a patch to remedy this, but until that is merged, I'll have to hold this patch.
(Also, some iotests do not yet use -machine accel=qtest at all, I'll have to fix that first, too.)
Max