From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIdg9-0005On-Lf for qemu-devel@nongnu.org; Fri, 02 Nov 2018 13:56:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIdg4-0006km-8v for qemu-devel@nongnu.org; Fri, 02 Nov 2018 13:56:17 -0400 References: From: Marc Olson Message-ID: Date: Fri, 2 Nov 2018 10:55:54 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [Qemu-devel] How to emulate block I/O timeout on qemu side? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , Dongli Zhang , qemu-devel@nongnu.org Cc: Qemu-block On 11/2/18 10:49 AM, John Snow wrote: > On 11/02/2018 04:11 AM, Dongli Zhang wrote: >> Hi, >> >> Is there any way to emulate I/O timeout on qemu side (not fault injection in VM >> kernel) without modifying qemu source code? >> >> For instance, I would like to observe/study/debug the I/O timeout handling of >> nvme, scsi, virtio-blk (not supported) of VM kernel. >> >> Is there a way to trigger this on purpose on qemu side? >> >> Thank you very much! >> >> Dongli Zhang >> > I don't think the blkdebug driver supports arbitrary delays right now. > Maybe we could augment it to do so? > > (I thought someone already had, but maybe it wasn't merged?) > > Aha, here: > > https://lists.gnu.org/archive/html/qemu-devel/2018-08/msg05297.html > V2: https://lists.gnu.org/archive/html/qemu-devel/2018-09/msg00394.html > > Let's work from there. I've got updates to that patch series that fell on the floor due to other competing things. I'll get some screen time this weekend to work on them and submit v3. /marc