[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 3/4] configure, meson: allow enabling vhost-user on all POSIX
From: |
Sergio Lopez |
Subject: |
[PATCH v3 3/4] configure, meson: allow enabling vhost-user on all POSIX systems |
Date: |
Thu, 3 Mar 2022 12:59:10 +0100 |
With the possibility of using a pipe pair via qemu_pipe() as a
replacement on operating systems that doesn't support eventfd,
vhost-user can also work on all POSIX systems.
This change allows enabling vhost-user on all non-Windows platforms
and makes libvhost_user (which still depends on eventfd) a linux-only
feature.
Signed-off-by: Sergio Lopez <slp@redhat.com>
---
configure | 4 ++--
meson.build | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index c56ed53ee3..daccf4be7c 100755
--- a/configure
+++ b/configure
@@ -1659,8 +1659,8 @@ fi
# vhost interdependencies and host support
# vhost backends
-if test "$vhost_user" = "yes" && test "$linux" != "yes"; then
- error_exit "vhost-user is only available on Linux"
+if test "$vhost_user" = "yes" && test "$mingw32" = "yes"; then
+ error_exit "vhost-user is not available on Windows"
fi
test "$vhost_vdpa" = "" && vhost_vdpa=$linux
if test "$vhost_vdpa" = "yes" && test "$linux" != "yes"; then
diff --git a/meson.build b/meson.build
index 8df40bfac4..f2bc439c30 100644
--- a/meson.build
+++ b/meson.build
@@ -2701,7 +2701,7 @@ if have_system or have_user
endif
vhost_user = not_found
-if 'CONFIG_VHOST_USER' in config_host
+if targetos == 'linux' and 'CONFIG_VHOST_USER' in config_host
libvhost_user = subproject('libvhost-user')
vhost_user = libvhost_user.get_variable('vhost_user_dep')
endif
--
2.35.1
- [PATCH v3 0/4] Enable vhost-user to be used on BSD systems, Sergio Lopez, 2022/03/03
- [PATCH v3 1/4] event_notifier: add event_notifier_get_wfd(), Sergio Lopez, 2022/03/03
- [PATCH v3 2/4] vhost: use wfd on functions setting vring call fd, Sergio Lopez, 2022/03/03
- [PATCH v3 3/4] configure, meson: allow enabling vhost-user on all POSIX systems,
Sergio Lopez <=
- [PATCH v3 4/4] docs: vhost-user: add subsection for non-Linux platforms, Sergio Lopez, 2022/03/03
- Re: [PATCH v3 0/4] Enable vhost-user to be used on BSD systems, Stefan Hajnoczi, 2022/03/03
- Re: [PATCH v3 0/4] Enable vhost-user to be used on BSD systems, Michael S. Tsirkin, 2022/03/04