Introduce 'virt-what-cvm' program
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 26 May 2023 11:39:03 +0000 (12:39 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 26 Jul 2024 15:03:20 +0000 (16:03 +0100)
commit772dfd3a966d766d4566fd048f8b0178f7f827e5
tree564a86ee4c69f98c5e71e4e8b0165e031b68b81d
parent128d73c47ef90ca871966a5417962836f9f359f1
Introduce 'virt-what-cvm' program

The 'virt-what' program prints facts that reflect the hypervisor that
the guest is running under.

The new complementary 'virt-what-cvm' program prints facts that reflect
the confidential virtualization technology the guest is running under,
if any.

It is kept as a separate tool, rather than incorporating the facts into
'virt-what' output because it is considering a different aspect of the
virtualization. Furthermore there are specific security concerns around
the usage of facts reported by 'virt-what-cvm'.

The tool has been tested in a number of environments

 * Azure confidential guest with AMD SEV-SNP (GA)
 * Azure confidential guest with Intel TDX (technology preview)
 * Fedora 37 QEMU/KVM guest with AMD SEV (GA)
 * Fedora 37 QEMU/KVM guest with AMD SEV-ES (GA)
 * Fedora 38 QEMU/KVM guest with AMD SEV-SNP + SVSM (devel snapshot)

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
(cherry picked from commit 22e33361e980ddefe08e2c68bf145943af8375f9)
.gitignore
Makefile.am
configure.ac
virt-what-cvm.c [new file with mode: 0644]
virt-what-cvm.pod [new file with mode: 0644]