On a Wednesday in 2022, Daniel P. Berrangé wrote:
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.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
examples/systemtap/amd-sev-es-vmsa.stp | 48 ++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 examples/systemtap/amd-sev-es-vmsa.stp
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano