Re: [Qemu-devel] [PATCH v2 1/1] ide-test: fix timeouts

2015-11-25 Thread Kevin Wolf
Am 24.11.2015 um 20:36 hat John Snow geschrieben: > Use explicit timeouts instead of trying to approximate it by counting > the cumulative duration of nsleep calls. > > In practice, the timeout if inb() dwarfed the nsleep delays, and as a > result the real timeout value became a lot larger than 5

[Qemu-devel] [PATCH v2 1/1] ide-test: fix timeouts

2015-11-24 Thread John Snow
Use explicit timeouts instead of trying to approximate it by counting the cumulative duration of nsleep calls. In practice, the timeout if inb() dwarfed the nsleep delays, and as a result the real timeout value became a lot larger than 5 seconds. So: change the semantics from "Not sooner than 5 s