mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tianyu Lan <ltykernel@gmail.com>
To: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: linux-arch@vger.kernel.org, linux-hyperv@vger.kernel.org,
	linux-kernel@vger.kernel.org, tglx@linutronix.de,
	mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com,
	x86@kernel.org, hpa@zytor.com, kys@microsoft.com,
	haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com,
	arnd@arndb.de, kirill.shutemov@linux.intel.com, rppt@kernel.org,
	nikunj@amd.com, thomas.lendacky@amd.com, liam.merwick@oracle.com,
	alexandr.lobakin@intel.com, michael.roth@amd.com,
	tiala@microsoft.com, pasha.tatashin@soleen.com,
	peterz@infradead.org, jpoimboe@kernel.org,
	michael.h.kelley@microsoft.com
Subject: Re: [PATCH] x86/hyperv: Rename hv_isolation_type_snp/en_snp() to isol_type_snp_paravisor/enlightened()
Date: Wed, 26 Jul 2023 10:57:32 +0800	[thread overview]
Message-ID: <6e222bb6-84b4-3bc2-4ed3-5f249d128733@gmail.com> (raw)
In-Reply-To: <871qgwow1q.fsf@redhat.com>

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.


      reply	other threads:[~2023-07-26  2:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-25 15:08 Tianyu Lan
2023-07-25 15:22 ` Vitaly Kuznetsov
2023-07-26  2:57   ` Tianyu Lan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6e222bb6-84b4-3bc2-4ed3-5f249d128733@gmail.com \
    --to=ltykernel@gmail.com \
    --cc=alexandr.lobakin@intel.com \
    --cc=arnd@arndb.de \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=decui@microsoft.com \
    --cc=haiyangz@microsoft.com \
    --cc=hpa@zytor.com \
    --cc=jpoimboe@kernel.org \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=kys@microsoft.com \
    --cc=liam.merwick@oracle.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-hyperv@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael.h.kelley@microsoft.com \
    --cc=michael.roth@amd.com \
    --cc=mingo@redhat.com \
    --cc=nikunj@amd.com \
    --cc=pasha.tatashin@soleen.com \
    --cc=peterz@infradead.org \
    --cc=rppt@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=thomas.lendacky@amd.com \
    --cc=tiala@microsoft.com \
    --cc=vkuznets@redhat.com \
    --cc=wei.liu@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®