Received: by 10.223.176.46 with SMTP id f43csp1915921wra; Thu, 25 Jan 2018 02:00:55 -0800 (PST) X-Google-Smtp-Source: AH8x227qSBJwlszr2v0oyZdTFUzKnuVPXrZpmGmVBwMAftZX1vbI0vEYutI7MW/IHHFjgthOWCBZ X-Received: by 2002:a17:902:bd4b:: with SMTP id b11-v6mr1247049plx.313.1516874455785; Thu, 25 Jan 2018 02:00:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516874455; cv=none; d=google.com; s=arc-20160816; b=jMRmmNuYtMgEn/yXP9Me9HnBpEK+65HBB+das4wDZCmqKsUJkT8nwi+65b/fz/mFUR 5tMVNnAz9vyc76qDeI/mB6T1qRUBPvCVCiybtvK3krIDpGM5WcESqKzx/brpUKrFFXo9 CTLyNmVEhs4hF2/qkyTwrzCaIKLl2MOPlsU15KhBeLNkEkOypr71+rGw5MirKbzYHjMg nexFaTtaaqSaliWK1X9CKiwB/UTj7EMpIJ11d5J3u6mRlYeQ8rB+Q7THZWRq9CEfa0bQ PnvEhcimo0k4YuQQZh5lc1czijMQUFs0Ik+rj/Bf1aujnUJKr/E4CmMnistbPGecaMjL rS8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=x822R6u/Vj2ybrhnLO2BmACidLaqG7SAPVddtLd/aLw=; b=A+UYo+RdRkcXum9Ykb+K12iVtEmWmi1lgJbCO9szdtS1/JmF6mMthepHwer/cIL+Cs Clz3kKaFMvo9zNA0egttjRmodSwN26cXeJAyagxwr7+0KooGhQztDocjBV3yAWluk5kc 8iW+LT8tQ0wQ5VPA6up2ohJSnNYDa+GNhT6HNgdZJuDmekAZfsZMOEPkGMKtAPdCiwDM IpAcu7KuEfS1iKZmzEm5wlDHGrDVYyR+zI7YoQtNu+IcS7MJ3YOO3V/0XLToceSdNoHC ORHPnurcK7iRRlkTsm6YnXwHRRpclfBQaPJVt1NkwcnWox+8IB+Ku6VOY+zEajg6nvYA yrow== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4-v6si1755204pls.43.2018.01.25.02.00.41; Thu, 25 Jan 2018 02:00:55 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751551AbeAYJ7m (ORCPT + 99 others); Thu, 25 Jan 2018 04:59:42 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:46400 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751325AbeAYJ7k (ORCPT ); Thu, 25 Jan 2018 04:59:40 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D1E1010A4; Thu, 25 Jan 2018 09:59:39 +0000 (UTC) Date: Thu, 25 Jan 2018 10:59:39 +0100 From: Greg KH To: mikelley@microsoft.com Cc: linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com, sthemmin@microsoft.com, kys@microsoft.com, x86@kernel.org, jrp@pun.org Subject: Re: [PATCH v2 char-misc 1/1] Drivers: hv: vmbus: Implement Direct Mode for stimer0 Message-ID: <20180125095939.GA16968@kroah.com> References: <20180122222929.3762-1-mikelley@exchange.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180122222929.3762-1-mikelley@exchange.microsoft.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 22, 2018 at 03:29:29PM -0700, mikelley@exchange.microsoft.com wrote: > +/* > + * If false, we're using the old mechanism for stimer0 interrupts > + * where it sends a VMbus message when it expires. The old > + * mechanism is used if Direct Mode is explicitly disabled > + * by the module parameter, or on older versions of Hyper-V > + * that don't support Direct Mode. While Hyper-V provides > + * four stimer's per CPU, Linux uses only stimer0. > + */ > +static bool direct_mode_enabled = true; > +module_param(direct_mode_enabled, bool, 0444); > +MODULE_PARM_DESC(direct_mode_enabled, > + "Set to N to disable stimer Direct Mode."); Ick ick ick. How is a distro or user supposed to know if/when to enable this and not to enable it? This isn't ok, can you please make this "automatic" to always do the right thing based on what it is running on? Module parameters are not a good idea as they are impossible to maintain and document and use over time. Please never add new ones to the kernel. thanks, greg k-h