diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-06-30 09:56:08 -0600 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2014-06-30 09:56:08 -0600 |
commit | ba29776fd8160a5c1c1892af5e237fc37aec3cf7 (patch) | |
tree | 06a94ae098fd4b986d6c3e84a966810f3651549d | |
parent | c40708176a6b52b73bec14796b7c71b882ceb102 (diff) | |
download | qemu-ba29776fd8160a5c1c1892af5e237fc37aec3cf7.tar.gz qemu-ba29776fd8160a5c1c1892af5e237fc37aec3cf7.tar.bz2 qemu-ba29776fd8160a5c1c1892af5e237fc37aec3cf7.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index d32678e2fe..aef4c9ce9d 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); } /* |