lkml.org 
[lkml]   [2021]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH V3 2/5] x86/hyper-v: Add hyperv Isolation VM check in the cc_platform_has()
From
On 12/2/2021 10:39 PM, Wei Liu wrote:
>> +static bool hyperv_cc_platform_has(enum cc_attr attr)
>> +{
>> +#ifdef CONFIG_HYPERV
>> + if (attr == CC_ATTR_GUEST_MEM_ENCRYPT)
>> + return true;
>> + else
>> + return false;
> This can be simplified as
>
> return attr == CC_ATTR_GUEST_MEM_ENCRYPT;
>
>
> Wei.

Hi Wei:
Thanks for your review. Will update.

\
 
 \ /
  Last update: 2021-12-03 12:24    [W:0.085 / U:0.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site