confidential-virt: add detection for s390x target
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 2 Aug 2024 10:03:10 +0000 (11:03 +0100)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 13:04:41 +0000 (14:04 +0100)
commit7a6d4cdc483c3cff03342d8c69b10c6792192171
treed765dc26251ba8981beb51f48bc6bd691d14da17
parenta1359ac94068580b4a12b2714a590a8ac1d30cae
confidential-virt: add detection for s390x target

The s390x platform provides confidential VMs using the "Secure Execution"
technology, which is also referred to as "Protected Virtualization" or
just "prot virt" in Linux / QEMU.

This can be detected through a simple sysfs attribute.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
(cherry picked from commit 6c35e0a51cc6a852ce239ea46cd75c133212a68e)
src/basic/confidential-virt.c
src/basic/confidential-virt.h