[PATCH 0/5] virt-what-cvm: improve SEV-SNP detection on Azure/HyperV

Daniel P. Berrangé berrange at redhat.com
Thu Jun 29 16:51:01 UTC 2023


My first attempt used a dirty hack of looking at the TPM NV index for
existance of a SEV-SNP attestation report.

I've since learnt of some HyperV specific CPUID leafs that can be used
to detect SEV-SNP in a much simlper/saner manner.

Thus this series drops the TPM code and replaces it with CPUID.

The fact name is also changed to 'hyperv-' instead of 'azure-' since
it is really a property of the hypervisor rather than cloud service.

Daniel P. Berrangé (5):
  virt-what-cvm: check if hypervisor bit is set
  virt-what-cvm: support alternative cpuid leaf ordering
  virt-what-cvm: probe for SNP/HCL on HyperV/Azure via CPUID
  virt-what-cvm: drop TPM logic for detecting SNP on HyperV/Azure
  virt-what-cvm: rename 'azure-hcl' fact to 'hyperv-hcl'

 Makefile.am       |   3 -
 configure.ac      |   2 -
 virt-what-cvm.c   | 231 +++++++++++++++++-----------------------------
 virt-what-cvm.pod |   6 +-
 4 files changed, 88 insertions(+), 154 deletions(-)

-- 
2.40.1



More information about the virt-tools-list mailing list