Commit ba29776f authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Alex Williamson
Browse files

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent c4070817
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}

/*