summaryrefslogtreecommitdiffstats
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
parentc40708176a6b52b73bec14796b7c71b882ceb102 (diff)
downloadhqemu-ba29776fd8160a5c1c1892af5e237fc37aec3cf7.zip
hqemu-ba29776fd8160a5c1c1892af5e237fc37aec3cf7.tar.gz
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>
-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);
}
/*
OpenPOWER on IntegriCloud