|
|
9ae3a8 |
From 3fdd5ce3ece26d5fd0d7702e08167bf5e513f620 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Fam Zheng <famz@redhat.com>
|
|
|
9ae3a8 |
Date: Mon, 18 Apr 2016 02:50:12 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 01/10] virtio-scsi: Prevent assertion on missed events
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Fam Zheng <famz@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1460947812-5704-1-git-send-email-famz@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 70202
|
|
|
9ae3a8 |
O-Subject: [RHEL-7.3 qemu-kvm PATCH] virtio-scsi: Prevent assertion on missed events
|
|
|
9ae3a8 |
Bugzilla: 1312289
|
|
|
9ae3a8 |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
From: Eric Farman <farman@linux.vnet.ibm.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
In some cases, an unplug can cause events to be dropped, which
|
|
|
9ae3a8 |
leads to an assertion failure when preparing to notify the guest
|
|
|
9ae3a8 |
kernel.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
|
|
|
9ae3a8 |
Cc: qemu-stable@nongnu.org
|
|
|
9ae3a8 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit 49fb65c7f985baa56d2964e0a85c1f098e3e2a9d)
|
|
|
9ae3a8 |
Signed-off-by: Fam Zheng <famz@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/scsi/virtio-scsi.c | 2 +-
|
|
|
9ae3a8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
|
|
|
9ae3a8 |
index 8232fc9..808eb54 100644
|
|
|
9ae3a8 |
--- a/hw/scsi/virtio-scsi.c
|
|
|
9ae3a8 |
+++ b/hw/scsi/virtio-scsi.c
|
|
|
9ae3a8 |
@@ -530,7 +530,7 @@ static void virtio_scsi_push_event(VirtIOSCSI *s, SCSIDevice *dev,
|
|
|
9ae3a8 |
evt->event = event;
|
|
|
9ae3a8 |
evt->reason = reason;
|
|
|
9ae3a8 |
if (!dev) {
|
|
|
9ae3a8 |
- assert(event == VIRTIO_SCSI_T_NO_EVENT);
|
|
|
9ae3a8 |
+ assert(event == VIRTIO_SCSI_T_EVENTS_MISSED);
|
|
|
9ae3a8 |
} else {
|
|
|
9ae3a8 |
evt->lun[0] = 1;
|
|
|
9ae3a8 |
evt->lun[1] = dev->id;
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.8.3.1
|
|
|
9ae3a8 |
|