runtime: Switch to using the rust version of virtiofsd (all but power)

So far this has been done for x86_64.  Now that the support for building
and testing has been added for all arches, let's do the second part of
the switch.

We're still not done yet for powerpc, as some a virtifosd crash on the
rust version has been found by the maintainer.

Fixes: #4258, #4260

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio
2022-05-24 14:58:49 +02:00
parent 9773838c01
commit 1ef0b7ded0
3 changed files with 62 additions and 8 deletions

View File

@@ -317,6 +317,29 @@ generate_qemu_options() {
# Don't build the qemu-io, qemu-nbd and qemu-image tools
qemu_options+=(size:--disable-tools)
# Kata Containers may be configured to use the virtiofs daemon.
#
# 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.
#
# From Kata Containers 2.5.0-alpha2 all arches but powerpc have been
# using the new implementation of virtiofs daemon, which is not part
# of QEMU.
# For the powwer, at least for now, keep building virtiofsd while
# building QEMU.
case "$arch" in
aarch64)
;;
x86_64)
;;
ppc64le)
qemu_options+=(functionality:--enable-virtiofsd)
;;
s390x)
;;
esac
qemu_options+=(functionality:--enable-virtfs)
# Don't build linux-user bsd-user