qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* adding 'official' way to dump SEV VMSA
@ 2022-04-13 13:36 Cole Robinson
  2022-04-14  8:19 ` Dov Murik
  2022-04-19 16:59 ` Daniel P. Berrangé
  0 siblings, 2 replies; 7+ messages in thread
From: Cole Robinson @ 2022-04-13 13:36 UTC (permalink / raw)
  To: kvm@vger.kernel.org
  Cc: Tom Lendacky, Daniel P. Berrange, qemu-devel,
	Dr. David Alan Gilbert, Dov Murik, Paolo Bonzini, Singh, Brijesh

Hi all,

SEV-ES and SEV-SNP attestation require a copy of the initial VMSA to
validate the launch measurement. For developers dipping their toe into
SEV-* work, the easiest way to get sample VMSA data for their machine is
to grab it from a running VM.

There's two techniques I've seen for that: patch some printing into
kernel __sev_launch_update_vmsa, or use systemtap like danpb's script
here: https://gitlab.com/berrange/libvirt/-/blob/lgtm/scripts/sev-vmsa.stp

Seems like this could be friendlier though. I'd like to work on this if
others agree.

Some ideas I've seen mentioned in passing:

- debugfs entry in /sys/kernel/debug/kvm/.../vcpuX/
- new KVM ioctl
- something with tracepoints
- some kind of dump in dmesg that doesn't require a patch

Thoughts?

Thanks,
Cole



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-04-19 17:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-13 13:36 adding 'official' way to dump SEV VMSA Cole Robinson
2022-04-14  8:19 ` Dov Murik
2022-04-14  8:25   ` Dr. David Alan Gilbert
2022-04-19 13:33     ` Cole Robinson
2022-04-19 14:23       ` Dr. David Alan Gilbert
2022-04-19 17:04       ` Daniel P. Berrangé
2022-04-19 16:59 ` Daniel P. Berrangé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).