[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <a2ee0e66712069ae8dead8f38b49ecee09ea3cb6.1656366338.git.isaku.yamahata@intel.com>
Date: Mon, 27 Jun 2022 14:52:57 -0700
From: isaku.yamahata@...el.com
To: kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: isaku.yamahata@...el.com, isaku.yamahata@...il.com,
Paolo Bonzini <pbonzini@...hat.com>
Subject: [PATCH v7 005/102] x86/virt/vmx/tdx: export platform_tdx_enabled()
From: Isaku Yamahata <isaku.yamahata@...el.com>
TDX KVM uses platform_tdx_enabled() 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@...el.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 1363998ce1a9..f9a6f8bdade8 100644
--- a/arch/x86/virt/vmx/tdx/tdx.c
+++ b/arch/x86/virt/vmx/tdx/tdx.c
@@ -1285,6 +1285,7 @@ bool platform_tdx_enabled(void)
{
return tdx_keyid_num >= 2;
}
+EXPORT_SYMBOL_GPL(platform_tdx_enabled);
/**
* tdx_init - Initialize the TDX module
--
2.25.1
Powered by blists - more mailing lists