packaging: qemu-snp-experimental: support host kernel with gmem

This is required to allow creation of SNP coco on host kernel
(e.g. https://github.com/AMDESE/linux ,branch:snp-host-latest)
supporting guest private memory for SNP using gmem.

Note: This qemu does not work if the host kernel does not support
gmem/UPM.

Fixes: #9092

Signed-off-by: Niteesh Dubey <niteesh@us.ibm.com>
This commit is contained in:
Niteesh Dubey
2024-02-13 15:32:25 +00:00
parent 8fe7349d3e
commit 0538bbfc49
5 changed files with 8 additions and 3 deletions

View File

@@ -328,7 +328,11 @@ 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.
qemu_options+=(functionality:--disable-virtiofsd)
#
# qemu configure does not support virtiofsd if qemu version >= 8.0.0.
if ! gt_eq "${qemu_version}" "8.0.0" ; then
qemu_options+=(functionality:--disable-virtiofsd)
fi
qemu_options+=(functionality:--enable-virtfs)