]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuxmlconftest; Explicitly enable QEMU_CAPS_SEV_SNP_GUEST for "launch-security-sev...
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Jun 2024 07:58:43 +0000 (09:58 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Jun 2024 12:45:58 +0000 (14:45 +0200)
Soon, QEMU_CAPS_SEV_SNP_GUEST is going to be dependant on more
than plain presence of "sev-snp-guest" object in QEMU. Explicitly
enable the capability for "launch-security-sev-snp" test so that
we can continue testing cmd line and xml2xml.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tests/qemuxmlconftest.c

index d27dc9fe945d25ffbc8f0003bb1538d5d442af82..8e0d47c6fdfc2e032e8fef6c1f3e9b5e2d881064 100644 (file)
@@ -2849,7 +2849,11 @@ mymain(void)
                                   QEMU_CAPS_SEV_GUEST,
                                   QEMU_CAPS_LAST);
 
-    DO_TEST_CAPS_ARCH_LATEST("launch-security-sev-snp", "x86_64");
+    DO_TEST_CAPS_ARCH_LATEST_FULL("launch-security-sev-snp",
+                                  "x86_64",
+                                  ARG_QEMU_CAPS,
+                                  QEMU_CAPS_SEV_SNP_GUEST,
+                                  QEMU_CAPS_LAST);
 
     DO_TEST_CAPS_ARCH_LATEST("launch-security-s390-pv", "s390x");