Blame SOURCES/kvm-vhost-user-Print-unexpected-slave-message-types.patch

ddf19c
From d6abbdaeb2c35efe6793a599c98116e250b1f179 Mon Sep 17 00:00:00 2001
ddf19c
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
ddf19c
Date: Mon, 27 Jan 2020 19:01:43 +0100
ddf19c
Subject: [PATCH 072/116] vhost-user: Print unexpected slave message types
ddf19c
MIME-Version: 1.0
ddf19c
Content-Type: text/plain; charset=UTF-8
ddf19c
Content-Transfer-Encoding: 8bit
ddf19c
ddf19c
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
Message-id: <20200127190227.40942-69-dgilbert@redhat.com>
ddf19c
Patchwork-id: 93519
ddf19c
O-Subject: [RHEL-AV-8.2 qemu-kvm PATCH 068/112] vhost-user: Print unexpected slave message types
ddf19c
Bugzilla: 1694164
ddf19c
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
ddf19c
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
ddf19c
RH-Acked-by: Sergio Lopez Pascual <slp@redhat.com>
ddf19c
ddf19c
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
ddf19c
ddf19c
When we receive an unexpected message type on the slave fd, print
ddf19c
the type.
ddf19c
ddf19c
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ddf19c
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
ddf19c
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
(cherry picked from commit 0fdc465d7d5aafeae127eba488f247ac6f58df4c)
ddf19c
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ddf19c
---
ddf19c
 hw/virtio/vhost-user.c | 2 +-
ddf19c
 1 file changed, 1 insertion(+), 1 deletion(-)
ddf19c
ddf19c
diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c
ddf19c
index 02a9b25..e4f46ec 100644
ddf19c
--- a/hw/virtio/vhost-user.c
ddf19c
+++ b/hw/virtio/vhost-user.c
ddf19c
@@ -1055,7 +1055,7 @@ static void slave_read(void *opaque)
ddf19c
                                                           fd[0]);
ddf19c
         break;
ddf19c
     default:
ddf19c
-        error_report("Received unexpected msg type.");
ddf19c
+        error_report("Received unexpected msg type: %d.", hdr.request);
ddf19c
         ret = -EINVAL;
ddf19c
     }
ddf19c
 
ddf19c
-- 
ddf19c
1.8.3.1
ddf19c