lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Wed, 26 Jul 2023 10:57:32 +0800
From:   Tianyu Lan <ltykernel@...il.com>
To:     Vitaly Kuznetsov <vkuznets@...hat.com>
Cc:     linux-arch@...r.kernel.org, linux-hyperv@...r.kernel.org,
        linux-kernel@...r.kernel.org, tglx@...utronix.de, mingo@...hat.com,
        bp@...en8.de, dave.hansen@...ux.intel.com, x86@...nel.org,
        hpa@...or.com, kys@...rosoft.com, haiyangz@...rosoft.com,
        wei.liu@...nel.org, decui@...rosoft.com, arnd@...db.de,
        kirill.shutemov@...ux.intel.com, rppt@...nel.org, nikunj@....com,
        thomas.lendacky@....com, liam.merwick@...cle.com,
        alexandr.lobakin@...el.com, michael.roth@....com,
        tiala@...rosoft.com, pasha.tatashin@...een.com,
        peterz@...radead.org, jpoimboe@...nel.org,
        michael.h.kelley@...rosoft.com
Subject: Re: [PATCH] x86/hyperv: Rename hv_isolation_type_snp/en_snp() to
 isol_type_snp_paravisor/enlightened()

On 7/25/2023 11:22 PM, Vitaly Kuznetsov wrote:
> Tianyu Lan <ltykernel@...il.com> writes:
> 
>> From: Tianyu Lan <tiala@...rosoft.com>
>>
>> Rename hv_isolation_type_snp and hv_isolation_type_en_snp()
>> to make them much intuitiver.
>>
>> Suggested-by: Vitaly Kuznetsov <vkuznets@...hat.com>
>> Signed-off-by: Tianyu Lan <tiala@...rosoft.com>
> 
> Thanks for the patch! A few comments below ...
> 
>> ---
>> This patch is based on the patchset "x86/hyperv: Add AMD sev-snp
>> enlightened guest support on hyperv" https://lore.kernel.org/lkml/
>> 20230718032304.136888-3-ltykernel@...il.com/T/.
>>
>>   arch/x86/hyperv/hv_init.c       |  6 +++---
>>   arch/x86/hyperv/ivm.c           | 17 +++++++++--------
>>   arch/x86/include/asm/mshyperv.h |  8 ++++----
>>   arch/x86/kernel/cpu/mshyperv.c  | 12 ++++++------
>>   drivers/hv/connection.c         |  2 +-
>>   drivers/hv/hv.c                 | 16 ++++++++--------
>>   drivers/hv/hv_common.c          | 10 +++++-----
>>   include/asm-generic/mshyperv.h  |  4 ++--
>>   8 files changed, 38 insertions(+), 37 deletions(-)
>>
>> diff --git a/arch/x86/hyperv/ivm.c b/arch/x86/hyperv/ivm.c
>> index 2eda4e69849d..2911c2525ed5 100644
>> --- a/arch/x86/hyperv/ivm.c
>> +++ b/arch/x86/hyperv/ivm.c
>> @@ -591,24 +591,25 @@ bool hv_is_isolation_supported(void)
>>   	return hv_get_isolation_type() != HV_ISOLATION_TYPE_NONE;
>>   }
>>   
>> -DEFINE_STATIC_KEY_FALSE(isolation_type_snp);
>> +DEFINE_STATIC_KEY_FALSE(isol_type_snp_paravisor_flag);
>>   
>>   /*
>> - * hv_isolation_type_snp - Check system runs in the AMD SEV-SNP based
>> + * isol_type_snp_paravisor - Check system runs in the AMD SEV-SNP based
>>    * isolation VM.
>>    */
>> -bool hv_isolation_type_snp(void)
>> +bool isol_type_snp_paravisor(void)
> 
> 
> I think that it would be better to keep 'hv_' prefix here for two reasons:
> ...
> 

Agree. Will update.

Thanks.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ