> On 17 Aug 2026, at 12:13 PM, Ani Sinha <[email protected]> wrote:
>
>
>
>> On 15 Aug 2026, at 10:39 AM, Ani Sinha <[email protected]> wrote:
>>
>> On Sat, Aug 15, 2026 at 9:59 AM Ani Sinha <[email protected]> wrote:
>>>
>>> A new test is added that loads a new IGVM bundle and sets host igvm
>>> ctrl at the same time. The expected behavior is that first reset will load
>>> the passed IGVM. The second reset will restore the original host provided
>>> IGVM.
>>> This test exercizes this functionality.
>>>
>>> Some refactoring is also done at the same time to re-use common operations
>>> from
>>> within multiple test routines.
>>
>> This applies on top of the v5 patchset here
>> https://lists.gnu.org/archive/html/qemu-devel/2026-08/msg02509.html
>
> Tested this patch on CoCo and the test runs fine there …
>
> serial console file is /tmp/launchupdate-qtest-serial-sKLAJU3
> # starting QEMU: exec ./qemu-system-x86_64 -qtest unix:/tmp/qtest-896542.sock
> -qtest-log /dev/null -chardev socket,path=/tmp/qtest-896542.qmp,id=char0
> -object monitor-qmp,id=qmp0,chardev=char0 -display none -audio none -run-with
> exit-with-parent=on -machine
> q35,igvm-cfg=igvm0,confidential-guest-support=lsec0 -m 1G -accel kvm -device
> vm-launch-update -chardev
> file,id=serial0,path=/tmp/launchupdate-qtest-serial-sKLAJU3 -serial
> chardev:serial0 -object
> igvm-cfg,id=igvm0,file=tests/data/igvm/snptest-nohello.igvm -object
> '{"qom-type":"sev-snp-guest","id":"lsec0","cbitpos":51,"reduced-phys-bits":1,"policy":196608}'
> -accel qtest
> initially booted with host igvm
> guest paddr: 100000 igvm size: 195048
> writing igvm file into the guest memory
> tell hypervisor where igvm is loaded in guest memory
> qemu-system-x86_64: info: vmlaunchupdate: new IGVM context set.
> resetting the virtual machine. This should load user provided igvm.
> qemu-system-x86_64: info: virtual machine state has been rebuilt with new
> guest file handle.
> qemu-system-x86_64: info: vmlaunchupdate: next reset will use host igvm
> hello world found on console
> Now resetting again in order to reset to host igvm
> qemu-system-x86_64: info: virtual machine state has been rebuilt with new
> guest file handle.
> qemu-system-x86_64: info: restoring original host IGVM:
> tests/data/igvm/snptest-nohello.igvm
> qemu-system-x86_64: info: vmlaunchupdate: host IGVM context set.
> booted with host igvm
> ok 5 /vm-launch-update/ctrl_set_once
> # slow test /vm-launch-update/ctrl_set_once executed in 4.81 secs
> # End of vm-launch-update tests
>
Squashed into patchset
https://lists.gnu.org/archive/html/qemu-devel/2026-08/msg03368.html
>>
>>>
>>> Signed-off-by: Ani Sinha <[email protected]>