lkml.org 
[lkml]   [2022]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCHv5 01/30] x86/tdx: Detect running as a TDX guest in early boot
From
On 3/4/22 07:43, Borislav Petkov wrote:
> On Wed, Mar 02, 2022 at 05:27:37PM +0300, Kirill A. Shutemov wrote:
>> +void __init tdx_early_init(void)
>> +{
>> + u32 eax, sig[3];
>> +
>> + cpuid_count(TDX_CPUID_LEAF_ID, 0, &eax, &sig[0], &sig[2], &sig[1]);
>> +
>> + BUILD_BUG_ON(sizeof(sig) != sizeof(TDX_IDENT) - 1);
> That's new.
>
> Is that pure paranoia or what are you protecting here against?

Pure reviewer paranoia. :)

https://lore.kernel.org/all/YhN5edJQ+LkVc0us@grain/

\
 
 \ /
  Last update: 2022-03-04 16:48    [W:0.111 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site