Re: [PATCH v2] vhost: fix external message handlers

2022-03-08 Thread Christophe Fontaine
s rely on them. > + */ > +struct __rte_packed vhu_msg_context { > + VhostUserMsg msg; > int fds[VHOST_MEMORY_MAX_NREGIONS]; > int fd_num; > - VhostUserMsg msg; > }; > > #define VHOST_USER_HDR_SIZE offsetof(VhostUserMsg, payload.u64) > -- > 2.23.0 > Sorry to have missed that test with virtio-crypto ; I'll create another thread to talk about the VhostUserMsg extension. Reviewed-by: Christophe Fontaine Thanks, Christophe

[PATCH v2 1/1] vhost: move fds outside of VhostUserMessage

2022-02-07 Thread Christophe Fontaine
From: Christophe Fontaine FDs at the end of the VhostUserMessage structure limits the size of the payload. Move them to an other englobing structure, before the header & payload of a VhostUserMessage. Also removes a reference to fds in the VHUMsg structure defined in drivers/net/vi

[PATCH v2 0/1] Removes FDs from VhostUserMessage structure

2022-02-07 Thread Christophe Fontaine
This patch removes the file descriptors from the struct VhostUserMessage as it is not part of the spec. These FDs are moved to a englobing context structure. v2: rebased on top of dpdk-next-virtio Christophe Fontaine (1): vhost: move fds outside of VhostUserMessage drivers/net/virtio

[PATCH 1/1] vhost: Move fds outside of VhostUserMessage

2022-01-23 Thread Christophe Fontaine
-off-by: Christophe Fontaine --- drivers/net/virtio/virtio_user/vhost_user.c | 1 - lib/vhost/vhost_crypto.c| 10 +- lib/vhost/vhost_user.c | 529 ++-- lib/vhost/vhost_user.h | 7 +- 4 files changed, 288 insert

[PATCH 0/1] Removes FDs from VhostUserMessage structure

2022-01-23 Thread Christophe Fontaine
This patch removes the file descriptors from the struct VhostUserMessage as it is not part of the spec. These FDs are moved to a englobing context structure. Christophe Fontaine (1): vhost: Move fds outside of VhostUserMessage drivers/net/virtio/virtio_user/vhost_user.c | 1 - lib/vhost