On 8/5/24 09:44, Stefano Garzarella wrote:

The vhost-user protocol is not really Linux-specific, so let's try support
QEMU's frontends and backends (including libvhost-user) in any POSIX system
with this series. The main use case is to be able to use virtio devices that
we don't have built-in in QEMU (e.g. virtiofsd, vhost-user-vsock, etc.) even
in non-Linux systems.

The first 5 patches are more like fixes discovered at runtime on macOS or
FreeBSD that could go even independently of this series.

Patches 6, 7, 8, and 9 enable building of frontends and backends (including
libvhost-user) with associated code changes to succeed in compilation.

Indeed, diffing ./configure on macOS:

+Executing subproject libvhost-user
+
+libvhost-user| Project name: libvhost-user
+libvhost-user| Project version: undefined
+libvhost-user| C compiler for the host machine: cc (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.3.9.4)")
+libvhost-user| C linker for the host machine: cc ld64 1053.12
+libvhost-user| Compiler for C supports arguments -Wsign-compare: YES
+libvhost-user| Compiler for C supports arguments -Wdeclaration-after-statement: YES
+libvhost-user| Compiler for C supports arguments -Wstrict-aliasing: YES
+libvhost-user| Dependency threads found: YES unknown (cached)
+libvhost-user| Dependency glib-2.0 found: YES 2.80.0 (overridden)
+libvhost-user| Build targets in project: 6
+libvhost-user| Subproject libvhost-user finished.

-Build targets in project: 707
+Build targets in project: 713

     QOM debugging                                : YES
     Relocatable install                          : YES
     vhost-kernel support                         : NO
-    vhost-net support                            : NO
-    vhost-user support                           : NO
-    vhost-user-crypto support                    : NO
-    vhost-user-blk server support                : NO
+    vhost-net support                            : YES
+    vhost-user support                           : YES
+    vhost-user-crypto support                    : YES
+    vhost-user-blk server support                : YES
     vhost-vdpa support                           : NO
     build guest agent                            : NO

     berkeley-testfloat-3                         : YES
     dtc                                          : YES
     keycodemapdb                                 : YES
+    libvhost-user                                : YES

---

Reply via email to