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)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 2 Aug 2024 15:26:00 +0000 (16:26 +0100)
commit1c4bd7adcc281af2a2dd40867f64f2ac54a43c7a
treecc1cf594f87c38f6407a54d3ba0712840f7c4cd6
parent4d1fbe53c1cc9b04acd897c728d996191daa618d
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>
src/basic/confidential-virt.c