confidential-virt: add detection for s390x target
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 2 Aug 2024 10:03:10 +0000 (11:03 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 2 Aug 2024 15:53:20 +0000 (16:53 +0100)
commit6c35e0a51cc6a852ce239ea46cd75c133212a68e
treea3f46dd1d70771b0a13473cab38f7fae51972081
parent1c4bd7adcc281af2a2dd40867f64f2ac54a43c7a
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>
src/basic/confidential-virt.c
src/basic/confidential-virt.h