tests/vhost-user-bridge: move to contrib/
PATCH v3 1/3 tests/vhost-user-bridge: move to contrib/
vhost-user-bridge is not a test. Move it to contrib/.
It will be built with:
make vhost-user-bridge
---
Notes:
v3: don't add vhost-user-bridge to the tools list
libvhost-user doesn't build on MacOSX and for instance vhost-user-blk is also built only on demand
v2: update docs
Makefile | 3 +++ Makefile.objs | 1 + contrib/vhost-user-bridge/Makefile.objs | 1 + tests/vhost-user-bridge.c => contrib/vhost-user-bridge/main.c | 0 docs/devel/migration.rst | 2 +- tests/Makefile.include | 1 - 6 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 contrib/vhost-user-bridge/Makefile.objs rename tests/vhost-user-bridge.c => contrib/vhost-user-bridge/main.c (100%)
Makefile +3 -0
@@ -445,6 +445,7 @@ dummy := $(call unnest-vars,, \ libvhost-user-obj-y \ vhost-user-scsi-obj-y \ vhost-user-blk-obj-y \ + vhost-user-bridge-obj-y \ vhost-user-input-obj-y \ vhost-user-gpu-obj-y \ qga-vss-dll-obj-y \
@@ -688,6 +689,8 @@ vhost-user-scsi$(EXESUF): $(vhost-user-scsi-obj-y) libvhost-user.a $(call LINK, $^) vhost-user-blk$(EXESUF): $(vhost-user-blk-obj-y) libvhost-user.a $(call LINK, $^) +vhost-user-bridge$(EXESUF): $(vhost-user-bridge-obj-y) libvhost-user.a + $(call LINK, $^) rdmacm-mux$(EXESUF): LIBS += "-libumad" rdmacm-mux$(EXESUF): $(rdmacm-mux-obj-y) $(COMMON_LDADDS)
Makefile.objs +1 -0
@@ -107,6 +107,7 @@ vhost-user-scsi.o-cflags := $(LIBISCSI_CFLAGS) vhost-user-scsi.o-libs := $(LIBISCSI_LIBS) vhost-user-scsi-obj-y = contrib/vhost-user-scsi/ vhost-user-blk-obj-y = contrib/vhost-user-blk/ +vhost-user-bridge-obj-y = contrib/vhost-user-bridge/ rdmacm-mux-obj-y = contrib/rdmacm-mux/ vhost-user-input-obj-y = contrib/vhost-user-input/ vhost-user-gpu-obj-y = contrib/vhost-user-gpu/
contrib/vhost-user-bridge/Makefile.objs new file +1 -0
@@ -0,0 +1 @@ +vhost-user-bridge-obj-y = main.o
contrib/vhost-user-bridge/main.c renamed from tests/vhost-user-bridge.c +0 -0
docs/devel/migration.rst +1 -1
@@ -807,7 +807,7 @@ The Linux kernel userfault support works on `/dev/shm` memory and on `hugetlbfs` for hugetlbfs which may be a problem in some configurations). The vhost-user code in QEMU supports clients that have Postcopy support, -and the `vhost-user-bridge` (in `tests/`) and the DPDK package have changes +and the `vhost-user-bridge` (in `contrib/`) and the DPDK package have changes to support postcopy. The client needs to open a userfaultfd and register the areas
tests/Makefile.include +0 -1
@@ -588,7 +588,6 @@ include $(SRC_PATH)/tests/qtest/Makefile.include tests/test-qga$(EXESUF): qemu-ga$(EXESUF) tests/test-qga$(EXESUF): tests/test-qga.o $(qtest-obj-y) -tests/vhost-user-bridge$(EXESUF): tests/vhost-user-bridge.o $(test-util-obj-y) libvhost-user.a SPEED = quick
Signature · 1 line
2.24.1
PATCH v3 2/3 virtiofsd: add it to the tools list
it will be built only when tools are enabled (always enabled by default)
--- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
@@ -327,7 +327,7 @@ HELPERS-y += vhost-user-gpu$(EXESUF) vhost-user-json-y += contrib/vhost-user-gpu/50-qemu-gpu.json endif -ifeq ($(CONFIG_LINUX)$(CONFIG_SECCOMP)$(CONFIG_LIBCAP_NG),yyy) +ifeq ($(CONFIG_LINUX)$(CONFIG_SECCOMP)$(CONFIG_LIBCAP_NG)$(CONFIG_TOOLS),yyyy) HELPERS-y += virtiofsd$(EXESUF) vhost-user-json-y += tools/virtiofsd/50-qemu-virtiofsd.json endif
@@ -697,7 +697,7 @@ rdmacm-mux$(EXESUF): $(rdmacm-mux-obj-y) $(COMMON_LDADDS) $(call LINK, $^) # relies on Linux-specific syscalls -ifeq ($(CONFIG_LINUX)$(CONFIG_SECCOMP)$(CONFIG_LIBCAP_NG),yyy) +ifeq ($(CONFIG_LINUX)$(CONFIG_SECCOMP)$(CONFIG_LIBCAP_NG)$(CONFIG_TOOLS),yyyy) virtiofsd$(EXESUF): $(virtiofsd-obj-y) libvhost-user.a $(COMMON_LDADDS) $(call LINK, $^) endif
Signature · 1 line
2.24.1
PATCH v3 3/3 travis: enable tools build on OS X
In reply to Laurent VivierAs we can build tools on OS X we should check we don't break build when we submit new codes.
--- .travis.yml | 1 + 1 file changed, 1 insertion(+)
.travis.yml +1 -0
@@ -273,6 +273,7 @@ jobs: - name: "OSX Xcode 10.3" env: + - BASE_CONFIG="--disable-docs --enable-tools" - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu" os: osx osx_image: xcode10.3
Signature · 1 line
2.24.1
Re: [PATCH v3 3/3] travis: enable tools build on OS X
Quoted 2 lines · Laurent Vivier
As we can build tools on OS X we should check we don't break build when we submit new codes.
I agree, snarfed this patch into testing/next, thanks.
Quoted 18 lines
Signed-off-by Laurent Vivier <[email protected]>--- .travis.yml | 1 + 1 file changed, 1 insertion(+).travis.yml +1
-0@@ -273,6 +273,7 @@ jobs: - name: "OSX Xcode 10.3" env: + - BASE_CONFIG="--disable-docs --enable-tools" - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu" os: osx osx_image: xcode10.3
Signature · 1 line
Alex Bennée