Skip to content

Commit

Permalink
vfio: use correct runstate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini authored and awilliam committed Jun 30, 2014
1 parent c407081 commit ba29776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/misc/vfio.c
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit ba29776

Please sign in to comment.