From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uk92y-00056l-6O for qemu-devel@nongnu.org; Wed, 05 Jun 2013 04:26:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uk92s-0007Gf-49 for qemu-devel@nongnu.org; Wed, 05 Jun 2013 04:26:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uk92r-0007GY-Sp for qemu-devel@nongnu.org; Wed, 05 Jun 2013 04:26:14 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r558QCdv031141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 5 Jun 2013 04:26:12 -0400 Date: Wed, 5 Jun 2013 16:26:13 +0800 From: Fam Zheng Message-ID: <20130605082613.GA23742@localhost.nay.redhat.com> References: <1370271492-5259-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1370271492-5259-1-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH] blockdev: reset werror/rerror on drive_del List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , dron@redhat.com, Paolo Bonzini , qemu-devel@nongnu.org, Markus Armbruster On Mon, 06/03 16:58, Stefan Hajnoczi wrote: > Paolo Bonzini suggested the following test case: > > 1. Launch a guest and wait at the GRUB boot menu: > > qemu-system-x86_64 -enable-kvm -m 1024 \ > -drive if=none,cache=none,file=test.img,id=foo,werror=stop,rerror=stop > -device virtio-blk-pci,drive=foo,id=virtio0,addr=4 > > 2. Hot unplug the device: > > (qemu) drive_del foo > > 3. Select the first boot menu entry > > Without this patch the guest pauses due to ENOMEDIUM. But it is not > possible to resolve this situation - the drive has become anonymous. > > With this patch the guest the guest gets the ENOMEDIUM error. s/the guest the guest/the guest/ -- Fam