From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1fNL-0007S5-6T for qemu-devel@nongnu.org; Mon, 30 Jun 2014 13:28:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1fND-0000vE-59 for qemu-devel@nongnu.org; Mon, 30 Jun 2014 13:28:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1fNC-0000uw-Sn for qemu-devel@nongnu.org; Mon, 30 Jun 2014 13:28:11 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5UHSAwQ002223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 30 Jun 2014 13:28:10 -0400 From: Alex Williamson Date: Mon, 30 Jun 2014 11:28:09 -0600 Message-ID: <20140630172809.24172.7415.stgit@bling.home> In-Reply-To: <20140630172611.24172.93339.stgit@bling.home> References: <20140630172611.24172.93339.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PULL 4/4] vfio: use correct runstate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , alex.williamson@redhat.com From: Paolo Bonzini io-error is for block device errors; it should always be preceded by a BLOCK_IO_ERROR event. I think vfio wants to use RUN_STATE_INTERNAL_ERROR instead. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Williamson --- 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 d32678e..aef4c9c 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -4062,7 +4062,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); } /*