Received: by 10.223.176.46 with SMTP id f43csp964038wra; Fri, 26 Jan 2018 09:35:29 -0800 (PST) X-Google-Smtp-Source: AH8x227ZEr/bCaJsdRksQNGlVB7BOI88qwabfbJWHisZouUrfB8ZulntcvnGS+qKfB11Y7G3p+a4 X-Received: by 2002:a17:902:d81:: with SMTP id 1-v6mr15314150plv.270.1516988129278; Fri, 26 Jan 2018 09:35:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516988129; cv=none; d=google.com; s=arc-20160816; b=e+7d6yzVf3ZdfAa+l0Se7dpGPadr0+yj8Tx4tS4rlqiKRAlbkt4YSm3WwjMUDRqLUK ugLksY5ZCopUodH55OfbUrkyr+Et5FhfqDaasZmA6d8ZzZJWsbsYY+Ij1xPE635bjYac wPBtmALRa7IZh9feiVUJHiwkbCcPNuTCanPlsacmkkM4t5troHQ00Af29myMOl07nUGy Qo+pIFhJS234pqMhPfminnjpTQjCV3VuTAbqXZmkWcNgMLeraMt6vsa8HgrWsns8y5Hu PRfgKGZ8hmPa6FceYjYli43QfiprEoCPajB6fe9b0oZfrs8jLlQsBH3EGPFafb12FZs7 u5tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:msip_labels :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=9vvz9BUwWFNYuUHBgEjXPZ66/GrZ7m41uYL4KFAl6CA=; b=jGa8KWN2Q1FSDMraQM+rder4QM4w6HNauldU3zL7GVKupVcIZ87VopDocm7nT9vYsX EOO8kiZZ1JajWeQPKAqLzVzQJmZeGSQCtgBLvKMG0pJ70BhmqlFpgBtQJcfTMAOBdW79 pzPBp/KoYpU9QoJu6Jn4/2GfV8O6ZtXRxTuvaNVfsCChthXVY4sgJXDZS0EnIQbhTBBf 7ZKhHnm/M+IioLwiOUk7I9JOCZdXJqugV2ZE+CRgtmc8rDJznqm/b/XfVycannV7WYi2 XQD7tHcPHF1bpgUtckdb0Z/DOf1jStwetZDSb5j+MynDngUtMkLyfR524F+vkGywoODC LqtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=lT8XczcB; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b89-v6si4027243plb.49.2018.01.26.09.35.14; Fri, 26 Jan 2018 09:35:29 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=lT8XczcB; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752000AbeAZRec (ORCPT + 99 others); Fri, 26 Jan 2018 12:34:32 -0500 Received: from mail-sn1nam02on0090.outbound.protection.outlook.com ([104.47.36.90]:35136 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751941AbeAZRea (ORCPT ); Fri, 26 Jan 2018 12:34:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=9vvz9BUwWFNYuUHBgEjXPZ66/GrZ7m41uYL4KFAl6CA=; b=lT8XczcBk5VqtUSLmavcmEAS9AdC4aDuox1Hwtn+R9N30AoW0Y2L/etHS8ERPIQoES29CamQQwH2kqB22xXBkxxloLZsmMi08hfl7gYjRAMtXDI/gptsj7xTKOWgTRSjhyqUAZr7uWOSw29MBou+yec9Z1wdTbpxEftoiGr9fho= Received: from DM5PR2101MB1030.namprd21.prod.outlook.com (52.132.128.11) by DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.485.0; Fri, 26 Jan 2018 17:34:28 +0000 Received: from DM5PR2101MB1030.namprd21.prod.outlook.com ([fe80::d5db:a805:a24c:d4bc]) by DM5PR2101MB1030.namprd21.prod.outlook.com ([fe80::d5db:a805:a24c:d4bc%3]) with mapi id 15.20.0485.000; Fri, 26 Jan 2018 17:34:28 +0000 From: "Michael Kelley (EOSG)" To: Greg KH 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" , Stephen Hemminger , "KY Srinivasan" , "x86@kernel.org" , "jrp@pun.org" Subject: RE: [PATCH v2 char-misc 1/1] Drivers: hv: vmbus: Implement Direct Mode for stimer0 Thread-Topic: [PATCH v2 char-misc 1/1] Drivers: hv: vmbus: Implement Direct Mode for stimer0 Thread-Index: AQHTk9CmEe7LRTvigUWlEDYDqcN9U6OEXsuAgAIN1EA= Date: Fri, 26 Jan 2018 17:34:28 +0000 Message-ID: References: <20180122222929.3762-1-mikelley@exchange.microsoft.com> <20180125095939.GA16968@kroah.com> In-Reply-To: <20180125095939.GA16968@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=mikelley@ntdev.microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-01-26T17:34:26.1361426Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General x-originating-ip: [24.22.167.197] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1032;6:ttDdJ0SuQH6VneQzr16ov2y6ulQPkCybLKaSLJavlIDH//jVSC8vsjPKKa3IB72yb2gaQebGabf8Y3vU9y7AjBylJPOc9GkXUqVH+sIIS6AGbAbvjxbGV6neIS5L6Hd0rTzK7m7RAmd31TNVN89LoxTSQ6G/Y8flxQ7l8x2idqkmbKfrstwOn91trK270RfFpcAH9bmNAunmgRF1WvlQdfm6/yNjfKNVYXhi5OC34WN6h6W4ayFJ/Oiwrl6Ta2XGbn5G1kfe7+HK5V0O6O3FOlWdG7wDvoqhYXwDvTiykYozHRsDXfkS2zB4I72rrcZmKvi68+Su5lFABWL6fvncy4bPGMsqf47iw5atHAxXutH002GIQ2pmF2eLyFNbIoPZ;5:GgdCkI60v26RqzHoQLklJKLg0kNutLGNZmq7mxxKkSukzscAGrmfZaxlvUGhZHe9vnxuf3BujtDHWDJNEXSwT2g+hzUZae5iP6jBBIwWD/ZqZEgl/4+wcSBOqHUQ8E0kFPZf/jVYUACU4uiAR9J3Np/SblEVVSk3unEwzQ+Ufu8=;24:lxrvtNBfBkD4pq7VjIXLkOG0ctUVDsDad3tYA54M+cDpXT9DCh4+jAnrGqwHOZu5mnLLME16ajfZK6hkNfunFttQhfyr7S9YcQsvnJ5ITbg=;7:E8jmCxAruqpUk0LlK9xUPonRwSQjkTFbTnOQAMdqE2/FsWsMnMRRWvLTLwLm4cZQ/iHxRUXKpZ6/qLZ9XNLyZbzjGG27+Btodt9JZ703d+94Umt+7q/Gij+erpDKJ4RUio1BWlMhL7CGyx6ur2itE38cgEM+NxJSALIM6EaSuMyiNyJYi7F9V0V7p8ieu0QghaKVhSrUVaoi3M89N21m1SwkSEU+FeeQpG9z09iod1mFOztEv8o2zy1AMhFa2D+/ x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10019020)(376002)(39860400002)(366004)(396003)(346002)(39380400002)(13464003)(199004)(189003)(7696005)(3660700001)(5660300001)(76176011)(105586002)(86362001)(3846002)(81166006)(6116002)(8676002)(99286004)(81156014)(316002)(33656002)(54906003)(7416002)(8936002)(3280700002)(10090500001)(22452003)(2950100002)(6916009)(25786009)(68736007)(478600001)(106356001)(14454004)(66066001)(7736002)(74316002)(86612001)(55016002)(6246003)(10290500003)(6436002)(97736004)(229853002)(72206003)(305945005)(102836004)(59450400001)(53936002)(53546011)(2900100001)(6506007)(5250100002)(26005)(2906002)(9686003)(8990500004)(4326008)(186003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1032;H:DM5PR2101MB1030.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 78b589cf-1d44-4d5d-6dc3-08d564e30d17 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:DM5PR2101MB1032; x-ms-traffictypediagnostic: DM5PR2101MB1032: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.H.Kelley@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(9452136761055)(140211028294663)(198206253151910); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(8121501046)(5005006)(3231074)(2400081)(944501161)(93006095)(93001095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB1032;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1032; x-forefront-prvs: 05641FD966 received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: WggV+B1FiRS7vO2+MApet5OqH28UjQdzJ10pKS3rBFmE+dB4+PTDRbWeGPfn+xaRuBCjykZiaJ8ZM0/X6ZX26w== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78b589cf-1d44-4d5d-6dc3-08d564e30d17 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jan 2018 17:34:28.1175 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1032 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Greg KH [mailto:gregkh@linuxfoundation.org] > Sent: Thursday, January 25, 2018 2:00 AM > To: Michael Kelley (EOSG) > Cc: linux-kernel@vger.kernel.org; devel@linuxdriverproject.org; olaf@aepf= le.de; > apw@canonical.com; vkuznets@redhat.com; jasowang@redhat.com; > leann.ogasawara@canonical.com; marcelo.cerri@canonical.com; Stephen Hemmi= nger > ; KY Srinivasan ; x86@kernel.o= rg; > jrp@pun.org > Subject: Re: [PATCH v2 char-misc 1/1] Drivers: hv: vmbus: Implement Direc= t Mode for stimer0 >=20 > 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 =3D true; > > +module_param(direct_mode_enabled, bool, 0444); > > +MODULE_PARM_DESC(direct_mode_enabled, > > + "Set to N to disable stimer Direct Mode."); >=20 > 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? To be clear, this patch already does the "automatic" thing based on the capabilities of the hypervisor. But it's often handy to be able to overrid= e the automatic behavior without having to rebuild the kernel. >=20 > 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. >=20 Is there a better alternative for providing an "override" capability? Having an override isn't super important in this case, so I'll drop the parameter, but it would be nice to have something easier than a rebuild. Michael > thanks, >=20 > greg k-h