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>
Tue, 30 May 2023 07:41:47 +0000 (08:41 +0100)
commit22e33361e980ddefe08e2c68bf145943af8375f9
treee888266c4b2b82f959207b01da21bc3d69210093
parent805604762468b754ea60e5dc176fa26f68d211b8
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>
.gitignore
Makefile.am
configure.ac
virt-what-cvm.c [new file with mode: 0644]
virt-what-cvm.pod [new file with mode: 0644]