lkml.org 
[lkml]   [2022]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH v6 005/104] x86/virt/vmx/tdx: export platform_has_tdx
Date
From: Isaku Yamahata <isaku.yamahata@intel.com>

TDX KVM uses platform_has_tdx() via vmx_hardware_setup() to check if the
platform supports TDX, concretely CPU SEAM mode, irrespective of TDX module
is loaded or initialized.

Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
---
arch/x86/virt/vmx/tdx/tdx.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c
index 8c49ca40b6ad..b6c82e64ad54 100644
--- a/arch/x86/virt/vmx/tdx/tdx.c
+++ b/arch/x86/virt/vmx/tdx/tdx.c
@@ -1715,3 +1715,4 @@ bool platform_has_tdx(void)
{
return seamrr_enabled() && tdx_keyid_sufficient();
}
+EXPORT_SYMBOL_GPL(platform_has_tdx);
--
2.25.1
\
 
 \ /
  Last update: 2022-05-05 20:29    [W:0.660 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site