From: Daniel P. Berrangé Date: Mon, 3 Jul 2023 09:20:47 +0000 (+0100) Subject: core: log detected confidential virtualization type X-Git-Tag: v254-rc1~9^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=024469ddb99ebbf0e0b0f1d77f763116ca251c5d;p=thirdparty%2Fsystemd.git core: log detected confidential virtualization type Related: https://github.com/systemd/systemd/issues/27604 Signed-off-by: Daniel P. Berrangé --- diff --git a/src/core/main.c b/src/core/main.c index 6290ec131c0..f9fd9fae7c3 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -34,6 +34,7 @@ #include "chase.h" #include "clock-util.h" #include "conf-parser.h" +#include "confidential-virt.h" #include "cpu-set-util.h" #include "crash-handler.h" #include "dbus-manager.h" @@ -2120,6 +2121,10 @@ static void log_execution_mode(bool *ret_first_boot) { if (v > 0) log_info("Detected virtualization %s.", virtualization_to_string(v)); + v = detect_confidential_virtualization(); + if (v > 0) + log_info("Detected confidential virtualization %s.", confidential_virtualization_to_string(v)); + log_info("Detected architecture %s.", architecture_to_string(uname_architecture())); if (in_initrd())