From d1f2852d8bfacd615ef7b6eb09759125baefb2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 11 May 2022 21:05:17 +0200 Subject: [PATCH] tools: Stop building virtiofsd with qemu (for x86_64) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As we finally can move to using the rust virtiofs daemon, let's stop bulding and packaging the C version of the virtiofsd for x86_64. Fixes: #4249 Depends-on: github.com/kata-containers/tests#4785 Signed-off-by: Fabiano FidĂȘncio --- .../packaging/scripts/configure-hypervisor.sh | 21 ++++++++++++++++++- .../static-build/scripts/qemu-build-post.sh | 4 +++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/tools/packaging/scripts/configure-hypervisor.sh b/tools/packaging/scripts/configure-hypervisor.sh index 1e3e2f6088..31dc4db25f 100755 --- a/tools/packaging/scripts/configure-hypervisor.sh +++ b/tools/packaging/scripts/configure-hypervisor.sh @@ -322,7 +322,26 @@ generate_qemu_options() { # But since QEMU 5.2 the daemon is built as part of the tools set # (disabled with --disable-tools) thus it needs to be explicitely # enabled. - qemu_options+=(functionality:--enable-virtiofsd) + # + # From Kata Containers 2.5.0-alpha2 x86_64 has been using the new + # implementation of virtiofs daemon, which is not part of QEMU. + # For the other arches, at least for now, keep building from while + # building QEMU. + # + # IOW, other arches are still using the C version of the virtiofsd. + case "$arch" in + aarch64) + qemu_options+=(functionality:--enable-virtiofsd) + ;; + x86_64) + ;; + ppc64le) + qemu_options+=(functionality:--enable-virtiofsd) + ;; + s390x) + qemu_options+=(functionality:--enable-virtiofsd) + ;; + esac qemu_options+=(functionality:--enable-virtfs) # Don't build linux-user bsd-user diff --git a/tools/packaging/static-build/scripts/qemu-build-post.sh b/tools/packaging/static-build/scripts/qemu-build-post.sh index da4c5d6d27..1b10b2aa0a 100755 --- a/tools/packaging/static-build/scripts/qemu-build-post.sh +++ b/tools/packaging/static-build/scripts/qemu-build-post.sh @@ -26,7 +26,9 @@ done if [[ -n "${BUILD_SUFFIX}" ]]; then echo "Rename binaries using $BUILD_SUFFIX" find -name 'qemu-system-*' -exec mv {} {}-experimental \; - find -name 'virtiofsd' -exec mv {} {}-experimental \; + if [[ ${ARCH} != "x86_64" ]]; then + find -name 'virtiofsd' -exec mv {} {}-experimental \; + fi fi echo "INFO: create the tarball"