Received: by 10.223.164.221 with SMTP id h29csp1353497wrb; Wed, 1 Nov 2017 15:01:33 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SGuiPYZc40IrFrynvHhO46qAkV5Plos/jrxxYlljzFAaPzpIfZS5SF9FMTgXQboGmwHosk X-Received: by 10.99.145.73 with SMTP id l70mr1292631pge.132.1509573693148; Wed, 01 Nov 2017 15:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509573693; cv=none; d=google.com; s=arc-20160816; b=Kmhkaczi3aR2VADZ+Qu6OjEAu/ukUKid16jnkOTIt/p0KujfFTt9z2IONKTYEs4c0r Bg/FL5UyUCRfDiuW07QbKXQq0Ei5B50Y7iPr7NjMDQAR+ZNmSt1CPtAoamleOi8x7cYO 8J3wc1WSXaANGqi3PEOrPLCrK5b9wrXwKGetXHEcnj+Sw4eI48CkzWb93kXh8FYcl8RS ecrACnRnA6Vg51CTndMGKBQqkdYATt8it2ZAxZSzSb8CyKK71ebv6zGL0Ha/uZOwW2qK JtYnSN7DrTWLPjHF09eN1xTnfGfC6cMZyD56VHSj+wokvJWG2ZwZSq99LRr8Y1gweqag YMPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=8u/DrFTQ5O7tEGTFXeP3k8x+DLIxROkfhHl4xEDShLs=; b=QRxUcgu4AVWWCn6oLJShmL3kHiQTqA3WCalDjEz6x5DsGXRBa5oINFqpyHH9NKTMst r15BgZNj35ONzLzi0WUCEfCZ4Hv2+BrYkHjShwSS6saOCEJLzpAdV9YphXmgK/9uG00+ M+CZO+npbFfP6J321iQ7kxnHjMNCKpNRZVnFRtlERNNgyZxeL/vOAVh71TlC7ZAsLt09 unZFe05ZzDUR+oVE7d/5lck12xJzfANPvQizFt1nndXlKj0Kq0MBqkNA8P4wcJNJoyRo Gg710YdoGySbslfDK0DeJQdV5lDt1KGPbmdlyZ6NiD4PVe8zvsT/ultBBjY7eTPuK6Db fi1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t64si1816874pgc.697.2017.11.01.15.01.19; Wed, 01 Nov 2017 15:01:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933662AbdKAWAn (ORCPT + 99 others); Wed, 1 Nov 2017 18:00:43 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:47834 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933807AbdKAWAl (ORCPT ); Wed, 1 Nov 2017 18:00:41 -0400 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA1LxfUO029473 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Nov 2017 21:59:42 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vA1LxfOi016817 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Nov 2017 21:59:41 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vA1LxdvR003474; Wed, 1 Nov 2017 21:59:39 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 01 Nov 2017 14:59:38 -0700 Subject: Re: [PATCH-tip v2 2/2] x86/xen: Deprecate xen_nopvspin To: Waiman Long , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Jonathan Corbet References: <1509569934-4919-1-git-send-email-longman@redhat.com> <1509569934-4919-3-git-send-email-longman@redhat.com> Cc: x86@kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Juergen Gross , Alok Kataria , Rusty Russell , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Peter Zijlstra From: Boris Ostrovsky Message-ID: <5c36ed18-e59e-1ea3-28e0-414f88965761@oracle.com> Date: Wed, 1 Nov 2017 18:01:10 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1509569934-4919-3-git-send-email-longman@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/01/2017 04:58 PM, Waiman Long wrote: > +/* TODO: To be removed in a future kernel version */ > static __init int xen_parse_nopvspin(char *arg) > { > - xen_pvspin = false; > + pr_warn("xen_nopvspin is deprecated, replace it with \"pvlock_type=queued\"!\n"); > + if (!pv_spinlock_type) > + pv_spinlock_type = locktype_queued; Since we currently end up using unfair locks and because you are deprecating xen_nopvspin I wonder whether it would be better to set this to locktype_unfair so that current behavior doesn't change. (Sorry, I haven't responded to your earlier message before you posted this). Juergen? I am also not sure I agree with making pv_spinlock an enum *and* a bitmask at the same time. I understand that it makes checks easier but I think not assuming a value or a pattern would be better, especially since none of the uses is on a critical path. (For example, !pv_spinlock_type is the same as locktype_auto, which is defined but never used) -boris > return 0; > } > early_param("xen_nopvspin", xen_parse_nopvspin); > - From 1582898904239036823@xxx Wed Nov 01 21:00:30 +0000 2017 X-GM-THRID: 1582898904239036823 X-Gmail-Labels: Inbox,Category Forums