thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
05bba0
From 78d0d122c47898c20a5209d0020674d28b42c513 Mon Sep 17 00:00:00 2001
05bba0
From: Alex Williamson <alex.williamson@redhat.com>
05bba0
Date: Fri, 10 Apr 2015 16:34:02 +0200
05bba0
Subject: [PATCH 05/14] vfio: use correct runstate
05bba0
05bba0
Message-id: <20150410163402.15324.34238.stgit@gimli.home>
05bba0
Patchwork-id: 64791
05bba0
O-Subject: [RHEL7.2 qemu-kvm PATCH 5/8] vfio: use correct runstate
05bba0
Bugzilla: 1210505
05bba0
RH-Acked-by: Thomas Huth <thuth@redhat.com>
05bba0
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
05bba0
RH-Acked-by: Bandan Das <bsd@redhat.com>
05bba0
05bba0
From: Paolo Bonzini <pbonzini@redhat.com>
05bba0
05bba0
Upstream: ba29776fd8160a5c1c1892af5e237fc37aec3cf7
05bba0
05bba0
io-error is for block device errors; it should always be preceded
05bba0
by a BLOCK_IO_ERROR event.  I think vfio wants to use
05bba0
RUN_STATE_INTERNAL_ERROR instead.
05bba0
05bba0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
05bba0
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
05bba0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
05bba0
---
05bba0
 hw/misc/vfio.c | 2 +-
05bba0
 1 file changed, 1 insertion(+), 1 deletion(-)
05bba0
05bba0
diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c
05bba0
index 81e6594..f6e019c 100644
05bba0
--- a/hw/misc/vfio.c
05bba0
+++ b/hw/misc/vfio.c
05bba0
@@ -3650,7 +3650,7 @@ static void vfio_err_notifier_handler(void *opaque)
05bba0
                  __func__, vdev->host.domain, vdev->host.bus,
05bba0
                  vdev->host.slot, vdev->host.function);
05bba0
 
05bba0
-    vm_stop(RUN_STATE_IO_ERROR);
05bba0
+    vm_stop(RUN_STATE_INTERNAL_ERROR);
05bba0
 }
05bba0
 
05bba0
 /*
05bba0
-- 
05bba0
1.8.3.1
05bba0