lkml.org 
[lkml]   [2023]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] x86/hyperv: Rename hv_isolation_type_snp/en_snp() to isol_type_snp_paravisor/enlightened()
From
On 7/25/2023 11:22 PM, Vitaly Kuznetsov wrote:
> Tianyu Lan <ltykernel@gmail.com> writes:
>
>> From: Tianyu Lan <tiala@microsoft.com>
>>
>> Rename hv_isolation_type_snp and hv_isolation_type_en_snp()
>> to make them much intuitiver.
>>
>> Suggested-by: Vitaly Kuznetsov <vkuznets@redhat.com>
>> Signed-off-by: Tianyu Lan <tiala@microsoft.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@gmail.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.

\
 
 \ /
  Last update: 2023-07-26 04:58    [W:0.033 / U:1.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site