aboutsummaryrefslogtreecommitdiff
path: root/hw/misc
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-06-30 09:56:08 -0600
committerAlex Williamson <alex.williamson@redhat.com>2014-06-30 09:56:08 -0600
commitba29776fd8160a5c1c1892af5e237fc37aec3cf7 (patch)
tree06a94ae098fd4b986d6c3e84a966810f3651549d /hw/misc
parentc40708176a6b52b73bec14796b7c71b882ceb102 (diff)
downloadqemu-ba29776fd8160a5c1c1892af5e237fc37aec3cf7.zip
qemu-ba29776fd8160a5c1c1892af5e237fc37aec3cf7.tar.gz
qemu-ba29776fd8160a5c1c1892af5e237fc37aec3cf7.tar.bz2
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 <pbonzini@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/misc')
-rw-r--r--hw/misc/vfio.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/*