]> git.ipfire.org Git - thirdparty/systemd.git/commit
efi: add helper API for detecting confidential virtualization
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 7 Jul 2023 15:28:19 +0000 (16:28 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 14 Jul 2023 13:18:09 +0000 (14:18 +0100)
commitb354a2cafc8ea38b4551aa3e4f078f1d7aa40c7c
tree9c65488e249423fe672a73681b5d32a5088745c3
parent129b9e3f42d6a2bd92fa7c78ab08a29d6403ddc8
efi: add helper API for detecting confidential virtualization

This helper is a simplified version of detect_confidential_virtualization()
that merely returns a boolean status flag reflecting whether we are believed
to be running inside a confidential VM.

This flag can be used for turning off features that are inappropriate to
use from a CVM, but must not be used for releasing sensitive data. The
latter must only be done in response to an attestation for the environment.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/boot/efi/vmm.c
src/boot/efi/vmm.h