packaging: qemu: Simplify "--disable-virtiofsd" logic

As all the supported architectures are disabling the virtiofsd build,
there's no need to keep the switch statement there.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-12-27 15:04:11 -03:00
parent bfc6fc7a85
commit cf4835e3ae
No known key found for this signature in database
GPG Key ID: EE926C2BDACC177B
3 changed files with 1 additions and 16 deletions

View File

@ -331,22 +331,7 @@ generate_qemu_options() {
# 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 power, at least for now, keep building virtiofsd while
# building QEMU.
case "$arch" in
aarch64)
qemu_options+=(functionality:--disable-virtiofsd)
;;
x86_64)
qemu_options+=(functionality:--disable-virtiofsd)
;;
ppc64le)
qemu_options+=(functionality:--disable-virtiofsd)
;;
s390x)
qemu_options+=(functionality:--disable-virtiofsd)
;;
esac
qemu_options+=(functionality:--disable-virtiofsd)
qemu_options+=(functionality:--enable-virtfs)