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>
Fri, 26 Jul 2024 15:03:49 +0000 (16:03 +0100)
commiteecffe8b20d7e136e64d7360ef6655c8eee4250e
treebeccc2632aa0191879e54df9759f2b06585a0886
parent56498baf2eddf072b9dcab7570febc6ce8f58504
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>
(cherry picked from commit bb0055b491501e16fca3ab61dc7a969effbf48f3)
virt-what-cvm.c