virt-what-cvm: probe for SNP/HCL on HyperV/Azure via CPUID
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 29 Jun 2023 16:51:04 +0000 (17:51 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 29 Jun 2023 17:17:19 +0000 (18:17 +0100)
commitbb0055b491501e16fca3ab61dc7a969effbf48f3
treecb9066468afb90a6d94d7e09df11d481d2d0f843
parent15d3e4a92fd9c1490fb6f86b7ab3a2dff8364837
virt-what-cvm: probe for SNP/HCL on HyperV/Azure via CPUID

When running a confidential VM on Azure (HyperV) we can probe
CPUID leaf 0x40000003 to detect if VM isolation is present,
and 0x4000000c to detect what kind of isolation is used.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
virt-what-cvm.c