qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 4/4] vhost-user: refactor send_resp code


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v5 4/4] vhost-user: refactor send_resp code
Date: Wed, 6 Sep 2023 08:11:16 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.0

On 2/8/23 11:08, Albert Esteve wrote:
Refactor code to send response message so that
all common parts both for the common REPLY_ACK
case, and other data responses, can call it and
avoid code repetition.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
---
  hw/virtio/vhost-user.c | 36 +++++++++---------------------------
  1 file changed, 9 insertions(+), 27 deletions(-)

diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c
index 104a56a48d..28fa0ace42 100644
--- a/hw/virtio/vhost-user.c
+++ b/hw/virtio/vhost-user.c
@@ -1632,29 +1632,23 @@ 
vhost_user_backend_handle_shared_object_remove(VhostUserShared *object)
      return virtio_remove_resource(&uuid);
  }
-static bool
-vhost_user_backend_send_dmabuf_fd(QIOChannel *ioc, VhostUserHeader *hdr,
-                                  VhostUserPayload *payload)
+static bool vhost_user_send_resp(QIOChannel *ioc, VhostUserHeader *hdr,
+                                 VhostUserPayload *payload)

Squash this patch with the previous one (in particular
because this fixes the build failure).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]