Re: [PATCH v2 3/3] vhost: add device op to offload the interrupt kick

2023-05-17 Thread Eelco Chaudron
On 16 May 2023, at 13:36, Eelco Chaudron wrote: > On 16 May 2023, at 12:12, David Marchand wrote: > >> On Tue, May 16, 2023 at 10:53 AM Eelco Chaudron wrote: >>> On 10 May 2023, at 13:44, David Marchand wrote: >> >> [snip] >> > @@ -846,6 +848,14 @@ vhost_user_socket_mem_free(struct vhost_u

Re: [PATCH v2 3/3] vhost: add device op to offload the interrupt kick

2023-05-16 Thread Eelco Chaudron
On 16 May 2023, at 13:45, Maxime Coquelin wrote: > On 5/16/23 13:36, Eelco Chaudron wrote: >> >> >> On 16 May 2023, at 12:12, David Marchand wrote: >> >>> On Tue, May 16, 2023 at 10:53 AM Eelco Chaudron wrote: On 10 May 2023, at 13:44, David Marchand wrote: >>> >>> [snip] >>> >> @@ -8

Re: [PATCH v2 3/3] vhost: add device op to offload the interrupt kick

2023-05-16 Thread Maxime Coquelin
On 5/16/23 13:36, Eelco Chaudron wrote: On 16 May 2023, at 12:12, David Marchand wrote: On Tue, May 16, 2023 at 10:53 AM Eelco Chaudron wrote: On 10 May 2023, at 13:44, David Marchand wrote: [snip] @@ -846,6 +848,14 @@ vhost_user_socket_mem_free(struct vhost_user_socket *vsocket)

Re: [PATCH v2 3/3] vhost: add device op to offload the interrupt kick

2023-05-16 Thread Eelco Chaudron
On 16 May 2023, at 12:12, David Marchand wrote: > On Tue, May 16, 2023 at 10:53 AM Eelco Chaudron wrote: >> On 10 May 2023, at 13:44, David Marchand wrote: > > [snip] > @@ -846,6 +848,14 @@ vhost_user_socket_mem_free(struct vhost_user_socket *vsocket) vsocket->p

Re: [PATCH v2 3/3] vhost: add device op to offload the interrupt kick

2023-05-16 Thread David Marchand
On Tue, May 16, 2023 at 10:53 AM Eelco Chaudron wrote: > On 10 May 2023, at 13:44, David Marchand wrote: [snip] > >> @@ -846,6 +848,14 @@ vhost_user_socket_mem_free(struct vhost_user_socket > >> *vsocket) > >> vsocket->path = NULL; > >> } > >> > >> + if (vsocket &&

Re: [PATCH v2 3/3] vhost: add device op to offload the interrupt kick

2023-05-16 Thread Eelco Chaudron
On 10 May 2023, at 13:44, David Marchand wrote: > On Wed, Apr 5, 2023 at 2:42 PM Eelco Chaudron wrote: >> >> This patch adds an operation callback which gets called every time the >> library wants to call eventfd_write(). This eventfd_write() call could >> result in a system call, which could

Re: [PATCH v2 3/3] vhost: add device op to offload the interrupt kick

2023-05-10 Thread David Marchand
On Wed, Apr 5, 2023 at 2:42 PM Eelco Chaudron wrote: > > This patch adds an operation callback which gets called every time the > library wants to call eventfd_write(). This eventfd_write() call could > result in a system call, which could potentially block the PMD thread. > > The callback functio