All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH for 2.1] vfio: use correct runstate
@ 2014-06-27 14:32 ` Paolo Bonzini
  0 siblings, 0 replies; 10+ messages in thread
From: Paolo Bonzini @ 2014-06-27 14:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Alex Williamson

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.

Cc: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 hw/misc/vfio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c
index 7437c2e..9d71d97 100644
--- a/hw/misc/vfio.c
+++ b/hw/misc/vfio.c
@@ -3978,7 +3978,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);
 }
 
 /*
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-07-02 13:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27 14:32 [Qemu-trivial] [PATCH for 2.1] vfio: use correct runstate Paolo Bonzini
2014-06-27 14:32 ` [Qemu-devel] " Paolo Bonzini
2014-06-27 16:34 ` [Qemu-trivial] " Alex Williamson
2014-06-27 16:34   ` [Qemu-devel] " Alex Williamson
2014-06-27 17:51   ` [Qemu-trivial] " Paolo Bonzini
2014-06-27 17:51     ` [Qemu-devel] " Paolo Bonzini
2014-06-27 18:36     ` [Qemu-trivial] " Alex Williamson
2014-06-27 18:36       ` [Qemu-devel] " Alex Williamson
2014-07-02 13:32     ` [Qemu-trivial] " Eric Blake
2014-07-02 13:32       ` Eric Blake

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.