Received: by 10.192.165.148 with SMTP id m20csp332025imm; Thu, 26 Apr 2018 22:53:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqJbdZBHv6Wn4KGnqY4P1cQPby8cjZAwVXmXth7gh62vxTMOM7WHSim1H2xLSNOQQlgftlC X-Received: by 2002:a17:902:b2c7:: with SMTP id x7-v6mr1029143plw.61.1524808435539; Thu, 26 Apr 2018 22:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524808435; cv=none; d=google.com; s=arc-20160816; b=kyRj224Qr/KdTJHeL/uSFRQ+kMUNHNRe7rMlEAWwjIPxIY8mCZFmEilmIC+fj5MOLN jokfmlw0rpi8gtBpRMznMFUcHGKZ/TuBcOMy9TYLd/x+PSZXyEvvR9HZYXmldCH7dUjz ZD9oXi4AwGHg13gq9BwmPhb/iLakoOYTDVUvWj1PedJe7yxsDIEx8UxZaDkzrsqFX3vp TQMP2Q3swNNqknv7fgUhcEoFb7d/Wfh5CDTwf74uKhC5ZqROqtPD9k3Bwq1N6G87IkAu XhkHlkgW8+As5Ox0xs3qhOCztWbYxGCoTYNMXelU9+wI5OFy4HFP0eBeegC/w3/ndGQ+ Zr8A== 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: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=Bngw6MuQ4um3auqN201gAnk9NdvoM69Yuoba0vxQPdo=; b=igwh5tJu0zejFwYwPRXS6v5CcM0soVSpubeTlMKr4fh2EgDjSEG3WvJvEGEdCp/fsn nU+5WbWvfbCU/JWanylRsFkvLliTRPEHkvvvWKQmLA5/b+cithNA0vdRkJiWqG1jYQVk jOUuDLGme+HwdooWFd4Ayt+e1dFgZS6mu3HQSn3rvAnbq0q7UcJ437D1ZkE9yQDfIah4 bz2/kX6as85BvKNbioglEC7JxA8astnSS8k45q+NLykpF0LSEHZrGBfsagCEGPZJcrC6 2DJz1eukScdC/GS1wM+Ta1CORB1gtCvicWaB3SaqjUu9+ODYBIM8NFVDlJ6BdDVqmZJ9 Pbvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Tg6jaEAW; 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 y64si605655pfj.239.2018.04.26.22.53.41; Thu, 26 Apr 2018 22:53:55 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Tg6jaEAW; 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 S1757453AbeD0Fwg (ORCPT + 99 others); Fri, 27 Apr 2018 01:52:36 -0400 Received: from mail-by2nam03on0137.outbound.protection.outlook.com ([104.47.42.137]:44175 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751458AbeD0Fwe (ORCPT ); Fri, 27 Apr 2018 01:52:34 -0400 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=Bngw6MuQ4um3auqN201gAnk9NdvoM69Yuoba0vxQPdo=; b=Tg6jaEAWuzpVG5yl99FBANC7pHsnQYq88klpnVVepNDaYr/KxiXkKY4nenN4r+a2yrx8/A3922DbNp+B9bgqYWVD2tGg/khuRbqziZlvq7sbACMWsJKW1FuqXFk1odCTYEjSmm1VzBIImeLv65HVGLVoQ3XKqubcsKnTrGGScU0= Received: from MW2PR2101MB1113.namprd21.prod.outlook.com (52.132.149.30) by MW2PR2101MB1131.namprd21.prod.outlook.com (52.132.146.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.735.4; Fri, 27 Apr 2018 05:52:32 +0000 Received: from MW2PR2101MB1113.namprd21.prod.outlook.com ([fe80::25f2:4462:8810:c22d]) by MW2PR2101MB1113.namprd21.prod.outlook.com ([fe80::25f2:4462:8810:c22d%4]) with mapi id 15.20.0735.005; Fri, 27 Apr 2018 05:52:32 +0000 From: KY Srinivasan To: Thomas Gleixner CC: "x86@kernel.org" , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "olaf@aepfle.de" , "apw@canonical.com" , "jasowang@redhat.com" , "hpa@zytor.com" , Stephen Hemminger , "Michael Kelley (EOSG)" , "vkuznets@redhat.com" Subject: RE: [PATCH 1/5] X86: Hyper-V: Enlighten APIC access Thread-Topic: [PATCH 1/5] X86: Hyper-V: Enlighten APIC access Thread-Index: AQHT3MEt4bId0VfgvUSyGyqrvfSnAKQTl0wAgACE5mA= Date: Fri, 27 Apr 2018 05:52:32 +0000 Message-ID: References: <20180425181110.8683-1-kys@linuxonhyperv.com> <20180425181250.8740-1-kys@linuxonhyperv.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2601:600:a280:b50:3d34:9b63:3fe:d485] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MW2PR2101MB1131;7:0ORAO6WJnLtml1nDqQlenCiqDiFvMZoykYJAvQ7MXicEYa+k6qFVE9CFJXAGUPOHK1PuLntoiex03D+A7BRhHA7wd05GXAwUJx2I7yZLvQJCP/L6V6Ghhu/f/s3U65jfcxl9mcC5ts6oIDP7yrOM7qlA7W6Of46OtLn3GfkAHgodiBNSrjoqAnku5v4ijt8dOnYxuDvXSpVvrSQNBS3rhbz3Olo70Wb/JOz8xkLJDikUfxwEK5JyCdkBerMmI8xD;20:YoP2mzw1B7V+g8LUOz1OluK6MmAZNSO8v92HxwLidV0UeHeJbXO62Zln7AJa249d4SclcmrCIo6A62jP8FWhZ3SYGLXoPHrG1cm3IpqqXH1/rBsKVqco3R1tvUTcGOorBdNZ36ojLjGcwbq8vAsbgPSfWMKFVIzi/B6Ba1zBlAI= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7193020);SRVR:MW2PR2101MB1131; x-ms-traffictypediagnostic: MW2PR2101MB1131: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(9452136761055)(198206253151910); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231232)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:MW2PR2101MB1131;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB1131; x-forefront-prvs: 0655F9F006 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39860400002)(366004)(346002)(376002)(39380400002)(199004)(189003)(13464003)(7416002)(97736004)(186003)(33656002)(7736002)(316002)(6916009)(22452003)(105586002)(106356001)(14454004)(76176011)(7696005)(476003)(99286004)(446003)(5250100002)(6346003)(11346002)(5660300001)(59450400001)(6116002)(486006)(102836004)(6506007)(53546011)(9686003)(53936002)(4326008)(55016002)(305945005)(10090500001)(8936002)(229853002)(2906002)(478600001)(6246003)(10290500003)(74316002)(3280700002)(46003)(54906003)(8990500004)(81156014)(6436002)(86612001)(81166006)(8676002)(3660700001)(25786009)(68736007)(2900100001)(86362001)(2004002);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB1131;H:MW2PR2101MB1113.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=kys@microsoft.com; x-microsoft-antispam-message-info: nyavMqoUOj00+3hVU3BOQT2oc9/e/GXUSJWnTZq6LT2RRv8krOpgByAnYIF7wAus9o/i5uJYCNwysh/BgDlo0jyJ9pLXtSOYAURcHCnaJZciGWk/wJhss7UwFHWFOwXcyxx/g1ePjxxxPEDM+NVMTQ0gwCMroTbXyvGn5+USs/zrx7vBhQANjB9/HBPmKAzw spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 70eb52b6-af5c-4613-01d1-08d5ac03119e X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70eb52b6-af5c-4613-01d1-08d5ac03119e X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2018 05:52:32.1649 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB1131 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Thomas Gleixner > Sent: Thursday, April 26, 2018 2:49 PM > To: KY Srinivasan > Cc: x86@kernel.org; gregkh@linuxfoundation.org; linux- > kernel@vger.kernel.org; devel@linuxdriverproject.org; olaf@aepfle.de; > apw@canonical.com; jasowang@redhat.com; hpa@zytor.com; Stephen > Hemminger ; Michael Kelley (EOSG) > ; vkuznets@redhat.com > Subject: Re: [PATCH 1/5] X86: Hyper-V: Enlighten APIC access >=20 > On Wed, 25 Apr 2018, kys@linuxonhyperv.com wrote: > > --- /dev/null > > +++ b/arch/x86/hyperv/hv_apic.c > > @@ -0,0 +1,98 @@ > > +// SPDX-License-Identifier: GPL-2.0 >=20 > Thanks for putting the license identifier in. >=20 > > + > > +/* > > + * Hyper-V specific APIC code. > > + * > > + * Copyright (C) 2018, Microsoft, Inc. > > + * > > + * Author : K. Y. Srinivasan >=20 > But can you please check with your lawyers whether you can avoid the > pointless boilerplate? The SPDX identifier should cover it. I will consult with MSFT legal on this. >=20 > > + * This program is free software; you can redistribute it and/or modif= y it > > + * under the terms of the GNU General Public License version 2 as > published > > + * by the Free Software Foundation. > > + * > > + * This program is distributed in the hope that it will be useful, but > > + * WITHOUT ANY WARRANTY; without even the implied warranty of > > + * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD > TITLE or > > + * NON INFRINGEMENT. See the GNU General Public License for more > > + * details. > > + * > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include >=20 > We usually order the includes >=20 > #include > ... > #include >=20 > #include > #include >=20 >=20 > > -void hyperv_init(void); > > +void __init hyperv_init(void); > > void hyperv_setup_mmu_ops(void); > > void hyper_alloc_mmu(void); > > void hyperv_report_panic(struct pt_regs *regs, long err); > > @@ -269,14 +269,16 @@ void hyperv_reenlightenment_intr(struct pt_regs > *regs); > > void set_hv_tscchange_cb(void (*cb)(void)); > > void clear_hv_tscchange_cb(void); > > void hyperv_stop_tsc_emulation(void); > > +void hv_apic_init(void); > > #else /* CONFIG_HYPERV */ > > -static inline void hyperv_init(void) {} > > +static __init inline void hyperv_init(void) {} >=20 > The __init on the empty inline function is pointless. >=20 > Other than the few nits. This looks well done! Thanks Thomas. I will address all the issues you have brought up in the next version. Regards, K. Y