diff mbox series

[kvm-unit-tests,GIT,PULL,05/12] s390x: run: Skip PV tests when tcg is the accelerator

Message ID 20210622082042.13831-6-frankja@linux.ibm.com (mailing list archive)
State New, archived
Headers show
Series [kvm-unit-tests,GIT,PULL,01/12] s390x: sie: Only overwrite r3 if it isn't needed anymore | expand

Commit Message

Janosch Frank June 22, 2021, 8:20 a.m. UTC
TCG doesn't support PV.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 s390x/run | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/s390x/run b/s390x/run
index 09805044..c615caa1 100755
--- a/s390x/run
+++ b/s390x/run
@@ -15,6 +15,11 @@  ACCEL=$(get_qemu_accelerator) ||
 qemu=$(search_qemu_binary) ||
 	exit $?
 
+if [ "${1: -7}" = ".pv.bin" ] || [ "${TESTNAME: -3}" = "_PV" ] && [ "$ACCEL" = "tcg" ]; then
+	echo "Protected Virtualization isn't supported under TCG"
+	exit 2
+fi
+
 M='-machine s390-ccw-virtio'
 M+=",accel=$ACCEL"
 command="$qemu -nodefaults -nographic $M"