@samitouri / QOSamiQemu / commits / f0e7be2e8b

tests/qtest: Add small igvm files for testing purpose

Needed by launchupdate-test.c. README file is added with explanation on how to build these IGVM files. CC: Alex Graf <graf@amazon.com> CC: Gerd Hoffman <kraxel@redhat.com> Reviewed-by: Alexander Graf <graf@amazon.com> Signed-off-by: Ani Sinha <anisinha@redhat.com> Message-ID: <20260817142010.80693-10-anisinha@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

Ani Sinha committed Aug 17, 2026 at 19:50 UTC f0e7be2e8b647c43dad3b3cabe3b50b071205351
3 files changed +45
tests/data/igvm/README new
+45
@@ -0,0 +1,45 @@
1 +
2 +=== This is the readme file for all IGVM file bundles provided ===
3 +=== All IGVM files are covered by GPL v2 or later ===
4 +SPDX-License-Identifier: GPL-2.0-or-later
5 +
6 +Small IGVM file bundles required for tesing vm-launch-update device
7 +===================================================================
8 +
9 +This directory contains IGVM files required for launchupdate-test.c.
10 +These IGVM bundles can be built from the following repository:
11 +
12 +https://gitlab.com/anisinha/virt-firmware-rs
13 +
14 +Just type "make" in the top of the repository. The built IGVM files
15 +can be found in the target/x86_64-unknown-none/debug directory.
16 +
17 +$ ls -l ./target/x86_64-unknown-none/debug/*.igvm
18 +-rw-r--r--. 1 anisinha anisinha 153624 Jun 8 10:05 ./target/x86_64-unknown-none/debug/hello.igvm
19 +-rw-r--r--. 1 anisinha anisinha 157848 Jun 8 10:05 ./target/x86_64-unknown-none/debug/igvmtest.igvm
20 +-rw-r--r--. 1 anisinha anisinha 987384 Jun 8 10:05 ./target/x86_64-unknown-none/debug/mefisto.igvm
21 +-rw-r--r--. 1 anisinha anisinha 368312 Jun 8 10:05 ./target/x86_64-unknown-none/debug/qemuinit.igvm
22 +-rw-r--r--. 1 anisinha anisinha 223944 Jun 8 10:05 ./target/x86_64-unknown-none/debug/snptest.igvm
23 +
24 +The IGVM bundles for sev-snp testing are also kept in a seperate directory /snp_igvm_bundles in the
25 +above repository for use without requiring to build from source:
26 +
27 +$ virtfirmware-rs/snp_igvm_bundles$ ls -l
28 +total 388
29 +-rw-r--r-- 1 anisinha anisinha 199176 Aug 7 00:58 snptest.igvm
30 +-rw-r--r-- 1 anisinha anisinha 195048 Aug 6 06:10 snptest-nohello.igvm
31 +
32 +Following files are used by the tests/qtest/launchupdate-test.c for non-coco case:
33 +
34 +hello.igvm
35 +qemuinit.igvm
36 +
37 +For confidential case (that is when COCO=1 is passed in the environment), the following
38 +IGVM bundles are used:
39 +
40 +snptest-nohello.igvm
41 +snptest.igvm
42 +
43 +The IGVM bundles used by the confidential case are not checked into the QEMU
44 +repository. Users who wish to test the confidential case can use the IGVM
45 +bundles from https://gitlab.com/anisinha/virt-firmware-rs as mentioned above.
tests/data/igvm/hello.igvm
Binary files /dev/null and b/tests/data/igvm/hello.igvm differ
tests/data/igvm/qemuinit.igvm
Binary files /dev/null and b/tests/data/igvm/qemuinit.igvm differ