[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f52083d6-9964-c995-1acf-a11ed1dbf935@oracle.com>
Date: Thu, 3 Oct 2019 19:22:17 +0800
From: Zhenzhong Duan <zhenzhong.duan@...cle.com>
To: Sean Christopherson <sean.j.christopherson@...el.com>
Cc: linux-kernel@...r.kernel.org, vkuznets@...hat.com,
linux-hyperv@...r.kernel.org, kvm@...r.kernel.org,
Jonathan Corbet <corbet@....net>,
"K. Y. Srinivasan" <kys@...rosoft.com>,
Haiyang Zhang <haiyangz@...rosoft.com>,
Stephen Hemminger <sthemmin@...rosoft.com>,
Sasha Levin <sashal@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H. Peter Anvin" <hpa@...or.com>
Subject: Re: [PATCH v3 4/4] x86/hyperv: Mark "hv_nopvspin" parameter obsolete
and map it to "nopvspin"
On 2019/10/3 1:19, Sean Christopherson wrote:
> On Mon, Sep 30, 2019 at 08:44:39PM +0800, Zhenzhong Duan wrote:
>> Includes asm/hypervisor.h in order to reference x86_hyper_type.
>>
>> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@...cle.com>
>> Cc: Jonathan Corbet <corbet@....net>
>> Cc: "K. Y. Srinivasan" <kys@...rosoft.com>
>> Cc: Haiyang Zhang <haiyangz@...rosoft.com>
>> Cc: Stephen Hemminger <sthemmin@...rosoft.com>
>> Cc: Sasha Levin <sashal@...nel.org>
>> Cc: Thomas Gleixner <tglx@...utronix.de>
>> Cc: Ingo Molnar <mingo@...hat.com>
>> Cc: Borislav Petkov <bp@...en8.de>
>> Cc: "H. Peter Anvin" <hpa@...or.com>
>> ---
...snip
>> @@ -64,7 +63,7 @@ __visible bool hv_vcpu_is_preempted(int vcpu)
>>
>> void __init hv_init_spinlocks(void)
>> {
>> - if (!hv_pvspin || !apic ||
>> + if (!pvspin || !apic ||
>> !(ms_hyperv.hints & HV_X64_CLUSTER_IPI_RECOMMENDED) ||
>> !(ms_hyperv.features & HV_X64_MSR_GUEST_IDLE_AVAILABLE)) {
>> pr_info("PV spinlocks disabled\n");
>> @@ -82,7 +81,9 @@ void __init hv_init_spinlocks(void)
>>
>> static __init int hv_parse_nopvspin(char *arg)
>> {
>> - hv_pvspin = false;
>> + pr_notice("\"hv_nopvspin\" is deprecated, please use \"nopvspin\" instead\n");
>> + if (x86_hyper_type == X86_HYPER_MS_HYPERV)
>> + pvspin = false;
> Personal preference would be to keep the hv_pvspin variable and add the
> extra check in hv_init_spinlocks().
OK, will do that way. Thanks
Zhenzhong
Powered by blists - more mailing lists