]> git.ipfire.org Git - thirdparty/libvirt.git/commit
scripts: add systemtap script for capturing SEV-ES VMSA
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 7 Jan 2022 19:53:08 +0000 (19:53 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 15 Nov 2022 11:09:30 +0000 (11:09 +0000)
commitd154b49a7e813245ff2ef1061c89edff9db0e119
treeb1506b1a82df2e42702431d5b55bc81ecb3cdbfa
parent330036a8975bd2f178678e798558610cf95b0b11
scripts: add systemtap script for capturing SEV-ES VMSA

In general we expect to be able to construct a SEV-ES VMSA
blob from knowledge about the AMD achitectural CPU register
defaults, KVM setup and QEMU setup. If any of this unexpectedly
changes, figuring out what's wrong could be horrible. This
systemtap script demonstrates how to capture the real VMSA
that is used for a SEV-ES as it is booted. The captured data
can be fed into the 'sevctl vmsa show' command in order to
produce formatted info with named registers, allowing a
'diff' to be performed.

This script will need updating for any kernel version that is
not 6.0, to set the correct line numbers.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
examples/systemtap/amd-sev-es-vmsa.stp [new file with mode: 0644]