From: Peter Lieven <pl@kamp.de>
To: "Dr. David Alan Gilbert" <dgilbert@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>
Cc: Amit Shah <amit.shah@redhat.com>, John Snow <jsnow@redhat.com>,
QEMU Developers <qemu-devel@nongnu.org>,
Juan Quintela <quintela@redhat.com>
Subject: Re: [Qemu-devel] [PULL 00/14] Migration pull request
Date: Fri, 20 Nov 2015 10:38:31 +0100 [thread overview]
Message-ID: <564EEA17.9080006@kamp.de> (raw)
In-Reply-To: <20151119151627.GH2653@work-vm>
Am 19.11.2015 um 16:16 schrieb Dr. David Alan Gilbert:
> * Peter Maydell (peter.maydell@linaro.org) wrote:
>> On 19 November 2015 at 14:44, Peter Maydell <peter.maydell@linaro.org> wrote:
>>> On 19 November 2015 at 13:21, Peter Maydell <peter.maydell@linaro.org> wrote:
>>>> On 19 November 2015 at 13:12, Peter Maydell <peter.maydell@linaro.org> wrote:
>>>>> Hi. Unfortunately this failed in 'make check' (x86-64 Linux, debug build):
>>>>>
>>>>> GTESTER check-qtest-i386
>>>>> blkdebug: Suspended request 'A'
>>>>> blkdebug: Resuming request 'A'
>>>>> **
>>>>> ERROR:/home/petmay01/linaro/qemu-for-merges/tests/ide-test.c:656:ide_wait_clear:
>>>>> code should not be reached
>>>>> GTester: last random seed: R02Sf1d98a814dee34e3985479976b17883c
>>>>> main-loop: WARNING: I/O thread spun for 1000 iterations
>>>>> main-loop: WARNING: I/O thread spun for 1000 iterations
>>>>> main-loop: WARNING: I/O thread spun for 1000 iterations
>>>>> main-loop: WARNING: I/O thread spun for 1000 iterations
>>>>> [vmxnet3][WR][vmxnet3_peer_has_vnet_hdr]: Peer has no virtio
>>>>> extension. Task offloads will be emulated.
>>>>> make: *** [check-qtest-i386] Error 1
>>>>>
>>>>> It might be an intermittent test fail from an earlier IDE pull?
>>>> Yep, intermittent. Second run of the tests passed...
>>> and repro'd on current master, so definitely not the fault of anything
>>> in this pull.
>> while QTEST_QEMU_BINARY=i386-softmmu/qemu-system-i386
>> QTEST_QEMU_IMG=qemu-img gtester -k --verbose -m=quick tests/ide-test ;
>> do true; done
>>
>> will eventually hang on /i386/ide/cdrom/pio_large (may take a fair
>> number of loops; when it works fine the test does not take an
>> appreciable amount of time). After a long time the timeout in the
>> test kicks in and the assert happens.
> cc'ing in Peter Lieven given his recent IDE buffering changes.
I wonder if there is a glitch in the PIO implementation of test-ide.c. As far as I understand the specs
it is not allowed to read data while the BSY flag is set. With the following change to the test-ide script
the test does not race:
diff --git a/tests/ide-test.c b/tests/ide-test.c
index d1014bb..ab0489e 100644
--- a/tests/ide-test.c
+++ b/tests/ide-test.c
@@ -728,6 +728,7 @@ static void cdrom_pio_impl(int nblocks)
for (i = 0; i < DIV_ROUND_UP(rxsize, limit); i++) {
size_t offset = i * (limit / 2);
size_t rem = (rxsize / 2) - offset;
+ ide_wait_clear(BSY);
for (j = 0; j < MIN((limit / 2), rem); j++) {
rx[offset + j] = le16_to_cpu(inw(IDE_BASE + reg_data));
}
Note: in the old sync version of the ATAPI PIO implementation this could not happen.
Peter
next prev parent reply other threads:[~2015-11-20 9:38 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 11:20 [Qemu-devel] [PULL 00/14] Migration pull request Juan Quintela
2015-11-19 11:20 ` [Qemu-devel] [PULL 01/14] Set last_sent_block Juan Quintela
2015-11-19 11:20 ` [Qemu-devel] [PULL 02/14] migration: Dead assignment of current_time Juan Quintela
2015-11-19 11:20 ` [Qemu-devel] [PULL 03/14] Unneeded NULL check Juan Quintela
2015-11-19 11:20 ` [Qemu-devel] [PULL 04/14] snapshot: create helper to test that block drivers supports snapshots Juan Quintela
2015-11-19 11:21 ` [Qemu-devel] [PULL 05/14] snapshot: return error code from bdrv_snapshot_delete_by_id_or_name Juan Quintela
2015-11-19 11:21 ` [Qemu-devel] [PULL 06/14] snapshot: create bdrv_all_delete_snapshot helper Juan Quintela
2015-11-19 11:21 ` [Qemu-devel] [PULL 07/14] snapshot: create bdrv_all_goto_snapshot helper Juan Quintela
2015-11-19 11:21 ` [Qemu-devel] [PULL 08/14] migration: factor our snapshottability check in load_vmstate Juan Quintela
2015-11-19 11:21 ` [Qemu-devel] [PULL 09/14] snapshot: create bdrv_all_find_snapshot helper Juan Quintela
2015-11-19 11:21 ` [Qemu-devel] [PULL 10/14] migration: drop find_vmstate_bs check in hmp_delvm Juan Quintela
2015-11-19 11:21 ` [Qemu-devel] [PULL 11/14] snapshot: create bdrv_all_create_snapshot helper Juan Quintela
2015-11-19 11:21 ` [Qemu-devel] [PULL 12/14] migration: reorder processing in hmp_savevm Juan Quintela
2015-11-19 11:21 ` [Qemu-devel] [PULL 13/14] migration: implement bdrv_all_find_vmstate_bs helper Juan Quintela
2015-11-19 11:21 ` [Qemu-devel] [PULL 14/14] migration: normalize locking in migration/savevm.c Juan Quintela
2015-11-19 13:12 ` [Qemu-devel] [PULL 00/14] Migration pull request Peter Maydell
2015-11-19 13:21 ` Peter Maydell
2015-11-19 14:44 ` Peter Maydell
2015-11-19 15:03 ` Peter Maydell
2015-11-19 15:16 ` Dr. David Alan Gilbert
2015-11-20 8:03 ` Peter Lieven
2015-11-20 9:38 ` Peter Lieven [this message]
2015-11-20 11:33 ` Peter Maydell
2015-11-20 13:44 ` Peter Lieven
2015-11-20 13:53 ` Kevin Wolf
2015-11-20 14:00 ` Peter Lieven
2015-11-20 14:15 ` Kevin Wolf
2015-11-19 17:32 ` John Snow
2015-11-19 15:56 ` Peter Maydell
-- strict thread matches above, loose matches on Subject: below --
2017-06-13 9:51 [Qemu-devel] [PULL 00/14] Migration PULL request Juan Quintela
2017-06-13 13:40 ` Peter Maydell
2018-01-03 9:38 [Qemu-devel] [PULL 00/14] Migration pull request Juan Quintela
2018-01-05 0:30 ` Eric Blake
2018-01-05 9:29 ` Dr. David Alan Gilbert
2018-01-05 9:59 ` Juan Quintela
2018-01-09 18:24 ` Peter Maydell
2018-01-09 18:28 ` Juan Quintela
2018-01-10 4:58 ` Alexey Perevalov
2018-01-11 11:51 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=564EEA17.9080006@kamp.de \
--to=pl@kamp.de \
--cc=amit.shah@redhat.com \
--cc=dgilbert@redhat.com \
--cc=jsnow@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).