diff options
author | Kai Huang <kai.huang@intel.com> | 2023-12-08 18:07:24 +0100 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2023-12-08 18:12:06 +0100 |
commit | 1e66a7e275393055d98d2306771fe1feadeb1cd6 (patch) | |
tree | 74dfb5d514aaf673468ccd5828848992e4b413cc /arch/x86/virt | |
parent | x86/virt/tdx: Make INTEL_TDX_HOST depend on X86_X2APIC (diff) | |
download | linux-1e66a7e275393055d98d2306771fe1feadeb1cd6.tar.xz linux-1e66a7e275393055d98d2306771fe1feadeb1cd6.zip |
x86/virt/tdx: Handle SEAMCALL no entropy error in common code
Some SEAMCALLs use the RDRAND hardware and can fail for the same reasons
as RDRAND. Use the kernel RDRAND retry logic for them.
There are three __seamcall*() variants. Do the SEAMCALL retry in common
code and add a wrapper for each of them.
Signed-off-by: Kai Huang <kai.huang@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Kirill A. Shutemov <kirll.shutemov@linux.intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20231208170740.53979-4-dave.hansen%40intel.com
Diffstat (limited to 'arch/x86/virt')
0 files changed, 0 insertions, 0 deletions