Received: from eggs.gnu.org ([2001:4830:134:3::10]:33282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Z7E-0004Ok-OK for qemu-devel@nongnu.org; Fri, 27 Jun 2014 12:35:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0Z78-0007jI-Jq for qemu-devel@nongnu.org; Fri, 27 Jun 2014 12:35:08 -0400 Message-ID: <1403886899.31091.187.camel@ul30vt.home> From: Alex Williamson Date: Fri, 27 Jun 2014 10:34:59 -0600 In-Reply-To: <1403879569-24256-1-git-send-email-pbonzini@redhat.com> References: <1403879569-24256-1-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for 2.1] vfio: use correct runstate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org On Fri, 2014-06-27 at 16:32 +0200, Paolo Bonzini wrote: > io-error is for block device errors; it should always be preceded > by a BLOCK_IO_ERROR event. Where does this requirement come from? I only see a loose association of IO_ERROR to disk in libvirt and none in QEMU. > I think vfio wants to use > RUN_STATE_INTERNAL_ERROR instead. But that seems to put us into an "unknown" paused state in libvirt. An I/O error still seems like a more appropriate state. I'm not sure this qualifies as a trivial patch, it is small, but subtle. Thanks, Alex > > Cc: Alex Williamson > Signed-off-by: Paolo Bonzini > --- > hw/misc/vfio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c > index 7437c2e..9d71d97 100644 > --- a/hw/misc/vfio.c > +++ b/hw/misc/vfio.c > @@ -3978,7 +3978,7 @@ static void vfio_err_notifier_handler(void *opaque) > __func__, vdev->host.domain, vdev->host.bus, > vdev->host.slot, vdev->host.function); > > - vm_stop(RUN_STATE_IO_ERROR); > + vm_stop(RUN_STATE_INTERNAL_ERROR); > } > > /*