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