diff options
| author | Stefano Garzarella <sgarzare@redhat.com> | 2024-06-18 12:00:34 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2024-07-02 09:27:56 -0400 |
| commit | ebdede644bbf5744f91dbe0d39742f17b03c4e10 (patch) | |
| tree | 963deb29e38af2a267b2682a422f231939ac3238 /util/vhost-user-server.c | |
| parent | 92b58bc7e9086e489295040d408118a81c47b31d (diff) | |
| download | focaccia-qemu-ebdede644bbf5744f91dbe0d39742f17b03c4e10.tar.gz focaccia-qemu-ebdede644bbf5744f91dbe0d39742f17b03c4e10.zip | |
libvhost-user: mask F_INFLIGHT_SHMFD if memfd is not supported
libvhost-user will panic when receiving VHOST_USER_GET_INFLIGHT_FD message if MFD_ALLOW_SEALING is not defined, since it's not able to create a memfd. VHOST_USER_GET_INFLIGHT_FD is used only if VHOST_USER_PROTOCOL_F_INFLIGHT_SHMFD is negotiated. So, let's mask that feature if the backend is not able to properly handle these messages. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Message-Id: <20240618100043.144657-5-sgarzare@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'util/vhost-user-server.c')
0 files changed, 0 insertions, 0 deletions