manibuilder/anita: Enable KVM when running on x86_64

This requires us to use privileged containers. Although, the QEMU
inside should still provide enough encapsulation, we might want to
disable this in automated environments.

Change-Id: I767287649511b46cd25125bcbceea8a0446fc76b
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/70914
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/util/manibuilder/anita-wrapper.sh b/util/manibuilder/anita-wrapper.sh
index 3ff9ee1..495069e 100644
--- a/util/manibuilder/anita-wrapper.sh
+++ b/util/manibuilder/anita-wrapper.sh
@@ -8,11 +8,13 @@
 
 [ -f ${CCACHE} ] || zcat cache.img.gz >${CCACHE}
 
+AV_ARGS="${ANITA_VMM_ARGS} -hdb ${CCACHE}"
+
 if [ $# -eq 0 ]; then
-	exec anita --vmm-args "-hdb ${CCACHE}" --memory-size=${MEM_SIZE} \
+	exec anita --vmm-args "${AV_ARGS}" --memory-size=${MEM_SIZE} \
 		interact ${INST_IMG}
 else
-	exec anita --vmm-args "-hdb ${CCACHE}" --memory-size=${MEM_SIZE} \
+	exec anita --vmm-args "${AV_ARGS}" --memory-size=${MEM_SIZE} \
 		--persist --run ". ./init && manitest \"$*\"" \
 		boot ${INST_IMG}
 fi