confidential-virt: split caching of CVM detection into separate method
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 2 Aug 2024 15:26:00 +0000 (16:26 +0100)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 13:04:41 +0000 (14:04 +0100)
commita1359ac94068580b4a12b2714a590a8ac1d30cae
treeeb0e128073a32620fd9c0a9737762b6b215a0852
parent86d89f4a107bcfbdfe9e415eace1c5834baa775d
confidential-virt: split caching of CVM detection into separate method

We have different impls of detect_confidential_virtualization per
architecture. The detection is cached in the x86_64 impl, and as we
add support for more targets, we want to use caching for all. It thus
makes sense to split caching out into an architecture independent
method.

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