From: Paolo Bonzini Date: Mon, 30 Jun 2014 15:56:08 +0000 (-0600) Subject: vfio: use correct runstate X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~729^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba29776fd8160a5c1c1892af5e237fc37aec3cf7;p=sdk%2Femulator%2Fqemu.git vfio: use correct runstate 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 --- 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); } /*