Re: [PATCH] vhost-user-test: no set non-blocking for cal fd less than 0.

2024-06-02 Thread Michael S. Tsirkin
On Thu, Apr 11, 2024 at 03:35:55PM +0800, Yuxue Liu yuxue@jaguarmicro.com wrote: > From: Yuxue Liu > > In the scenario where vhost-user sets eventfd to -1, > qemu_chr_fe_get_msgfds retrieves fd as -1. When vhost_user_read > receives, it does not perform blocking operations on the descriptor

Re: [PATCH] vhost-user-test: no set non-blocking for cal fd less than 0.

2024-04-22 Thread Gavin Liu
om Sent: April 18, 2024 23:41 To: Gavin Liu gavin@jaguarmicro.com Cc: pbonz...@redhat.com; lviv...@redhat.com; th...@redhat.com; qemu-devel@nongnu.org Subject: Re: [PATCH] vhost-user-test: no set non-blocking for cal fd less than 0. External Mail: This email originated from OUTSIDE of the organization! Do

Re: [PATCH] vhost-user-test: no set non-blocking for cal fd less than 0.

2024-04-18 Thread Michael S. Tsirkin
On Thu, Apr 11, 2024 at 03:35:55PM +0800, Yuxue Liu yuxue@jaguarmicro.com wrote: > From: Yuxue Liu > > In the scenario where vhost-user sets eventfd to -1, > qemu_chr_fe_get_msgfds retrieves fd as -1. When vhost_user_read > receives, it does not perform blocking operations on the descriptor

Re: [PATCH] vhost-user-test: no set non-blocking for cal fd less than 0.

2024-04-18 Thread Thomas Huth
On 11/04/2024 09.35, Yuxue Liu yuxue@jaguarmicro.com wrote: From: Yuxue Liu In the scenario where vhost-user sets eventfd to -1, qemu_chr_fe_get_msgfds retrieves fd as -1. When vhost_user_read receives, it does not perform blocking operations on the descriptor with fd=-1, so non-blocking op

[PATCH] vhost-user-test: no set non-blocking for cal fd less than 0.

2024-04-11 Thread Yuxue Liu yuxue....@jaguarmicro.com
From: Yuxue Liu In the scenario where vhost-user sets eventfd to -1, qemu_chr_fe_get_msgfds retrieves fd as -1. When vhost_user_read receives, it does not perform blocking operations on the descriptor with fd=-1, so non-blocking operations should not be performed here either.This is a normal use