Skip to contentSkip to conversation

iotests: drop thread spun work-around

PATCH In review Michael S. Tsirkin 2 participants 4 messages Oct 10, 2016 – Oct 17, 2016

lore
Share & tools
lore
#0 lore raw

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
index cfdb633..49217b0 100644
@@ -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
Reviewed-by on v1 1/1
#2 lore raw
In reply to Michael S. Tsirkin
Quoted 11 lines · Michael S. Tsirkin

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?

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
index cfdb633..49217b0 100644
@@ -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
 }
 
#3 lore raw
In reply to Michael S. Tsirkin
Quoted 13 lines · Michael S. Tsirkin

We've disabled the warning, no need for test to work around it.

---
 tests/qemu-iotests/common.filter | 1 -
 1 file changed, 1 deletion(-)
tests/qemu-iotests/common.filter +0 -0
index cfdb633..49217b0 100644

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