On Fri, Oct 30, 2026 at 12:21:00PM +0100, Tim Pambor wrote:
> The vhost-user protocol is not really Linux-specific so let's enable
> vhost-user frontends for any POSIX system.
> 
> vhost_net.c uses VHOST_FILE_UNBIND, which is defined in a Linux specific
> header. The kernel's VHOST_NET_SET_BACKEND documentation asks to pass
> fd -1 to unbind, so replace the macro with -1 and drop the include,
> nothing else in the file needs it. Long-term a constant could be
> introduced and used for it.
> 
> Co-authored-by: Stefano Garzarella <[email protected]>
> Signed-off-by: Tim Pambor <[email protected]>
> ---
> Changes in v2:
> - Replaced VHOST_FILE_UNBIND with -1 and dropped the include
> ---
>  hw/block/Kconfig   | 2 +-
>  hw/net/vhost_net.c | 3 +--
>  meson.build        | 1 -
>  3 files changed, 2 insertions(+), 4 deletions(-)

Reviewed-by: Stefan Hajnoczi <[email protected]>


Reply via email to