]> www.infradead.org Git - users/hch/block.git/commit
selftests: kvm: split "launch" phase of SEV VM creation
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Apr 2024 12:13:26 +0000 (08:13 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Apr 2024 17:08:27 +0000 (13:08 -0400)
commit4c180a57b03a3fec46a66c608ff525bf26b3a3be
tree7e7e7a3fc95bdba214a7b0fcea54bce912e1192b
parentd18c8648166e34d93b9d4a48e975bb24514d4a16
selftests: kvm: split "launch" phase of SEV VM creation

Allow the caller to set the initial state of the VM.  Doing this
before sev_vm_launch() matters for SEV-ES, since that is the
place where the VMSA is updated and after which the guest state
becomes sealed.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20240404121327.3107131-17-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/x86_64/sev.h
tools/testing/selftests/kvm/lib/x86_64/sev.c
tools/testing/selftests/kvm/x86_64/sev_smoke_test.c