Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757587AbdIIP6u (ORCPT ); Sat, 9 Sep 2017 11:58:50 -0400 Received: from mail-bl2nam02on0110.outbound.protection.outlook.com ([104.47.38.110]:18976 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753683AbdIIP6s (ORCPT ); Sat, 9 Sep 2017 11:58:48 -0400 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" , "mingo@kernel.org" Subject: RE: [PATCH 1/1] x86/hyper-V: Allocate the IDT entry early in boot Thread-Topic: [PATCH 1/1] x86/hyper-V: Allocate the IDT entry early in boot Thread-Index: AQHTKO1HDeaWVgDPpECcOs+MQ73aE6KsTUaAgABpyCA= Date: Sat, 9 Sep 2017 15:58:46 +0000 Message-ID: References: <20170908215450.735-1-kys@microsoft.com> In-Reply-To: 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_Ref=https://api.informationprotection.azure.com/api/72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=kys@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2017-09-09T08:58:45.2380440-07:00; 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: [2601:600:a27f:e5c0:6180:7588:15ee:f77c] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR21MB0281;6:eI9WCVW6NcVperdEZhmXHPQ3+utZwxsHxf12cY9rsjAjUes+2epHoYigLIgPgF3YGmPfUjefNUJqKdzUQToTcfEVsZQa4CtBpT4LoZgLcqi8s+ZOczQjw7ymQoy8PkmvBtshsl85JuH1/kYiM8JhHfMg2TjHOUjNKWIBZCW1RaT3bBYEzZkDwKSfnPwfmbWGRoBISENHJZGS4ynQg3cHdoG+8N+45dLuWaL8vAj5kFc/IwxK2ouBJ/IAF6adw4waqnSd/cklM1a4ICHaFp1EE/iw5FpPdPaf4OgvV1k6Ob+Oxcmpti56tj48hyhW9d/ISvxi96+ryv+M8MlygMviNA==;5:22CxuMRBmMg18wbX0wanmSvl9c0GPjAqLXn6smQuw5oDIcAPLlcxOegqqwgCBq7Nzn/VmnN14S7TzdfbQGbl4ZLt/y35CghHs9Nqqrz7pl7v/HvHZ4MN0WD+UipB7bK5EtDl7GqO3FoFanWQFjDOtQ==;24:9f4gZxy+gn4OxF8GBMj5lIjkCT0OBMTV7Sph6Ti+AzU+PKQy1gPc8nHr5FCDsvbX7XxgZgjXNKrsVjT6Ey0DYorAZbjvzKpk/wrMvziKwpM=;7:ozXNhUF33aoBUfeYdun/d7SetEKAVRIWT07fSZs907A5OBrsEKy8X0ECFJAYnMaXGBu9MuYLgM3WSxMumubd9TmaIFjbBCXRqmbQIh6u1pB7asXgPrc+/2lDDIH8TnlwYeUdzqfBh3IUIO01r/NRZ276Roh6vs1T539NMFTakC03G8WsLa458U0oiV1hFdofmvTnl9olEN56xxApVMr0Cj7Z42j6WqZ1P291Ni895QE= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 00b48feb-39c8-43bc-1f07-08d4f79ba730 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM5PR21MB0281; x-ms-traffictypediagnostic: DM5PR21MB0281: authentication-results: spf=none (sender IP is ) smtp.mailfrom=kys@microsoft.com; x-exchange-antispam-report-test: UriScan:(89211679590171)(9452136761055)(198206253151910); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(61425038)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041248)(20161123558100)(20161123555025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR21MB0281;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR21MB0281; x-forefront-prvs: 0425A67DEF x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39860400002)(47760400005)(377454003)(189002)(13464003)(24454002)(199003)(101416001)(10090500001)(86362001)(229853002)(76176999)(54356999)(86612001)(6916009)(2950100002)(7416002)(74316002)(8676002)(81156014)(81166006)(25786009)(53546010)(5660300001)(8936002)(7696004)(4326008)(14454004)(478600001)(50986999)(105586002)(106356001)(305945005)(68736007)(7736002)(10290500003)(33656002)(2900100001)(55016002)(99286003)(6506006)(6246003)(3660700001)(8990500004)(54906002)(6436002)(4743002)(2906002)(110136004)(77096006)(53936002)(9686003)(97736004)(3280700002)(6116002)(22452003)(102836003)(189998001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR21MB0281;H:DM5PR21MB0476.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Sep 2017 15:58:46.2085 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR21MB0281 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v89Fwv6b031033 Content-Length: 1752 Lines: 59 > -----Original Message----- > From: Thomas Gleixner [mailto:tglx@linutronix.de] > Sent: Saturday, September 9, 2017 2:40 AM > 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; > mingo@kernel.org > Subject: Re: [PATCH 1/1] x86/hyper-V: Allocate the IDT entry early in boot > > On Fri, 8 Sep 2017, K. Y. Srinivasan wrote: > > > Allocate the hypervisor callback IDT entry early in the boot sequence. > > > > Signed-off-by: K. Y. Srinivasan > > --- > > arch/x86/kernel/cpu/mshyperv.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/arch/x86/kernel/cpu/mshyperv.c > b/arch/x86/kernel/cpu/mshyperv.c > > index 3b3f713e15e5..236324e83a3a 100644 > > --- a/arch/x86/kernel/cpu/mshyperv.c > > +++ b/arch/x86/kernel/cpu/mshyperv.c > > @@ -59,8 +59,6 @@ void hyperv_vector_handler(struct pt_regs *regs) > > void hv_setup_vmbus_irq(void (*handler)(void)) > > { > > vmbus_handler = handler; > > - /* Setup the IDT for hypervisor callback */ > > - alloc_intr_gate(HYPERVISOR_CALLBACK_VECTOR, > hyperv_callback_vector); > > } > > > > void hv_remove_vmbus_irq(void) > > @@ -251,6 +249,8 @@ static void __init ms_hyperv_init_platform(void) > > */ > > x86_platform.apic_post_init = hyperv_init; > > hyperv_setup_mmu_ops(); > > + /* Setup the IDT for hypervisor callback */ > > + alloc_intr_gate(HYPERVISOR_CALLBACK_VECTOR, > hyperv_callback_vector); > > #endif > > } > > Nice. So we can make all of that gate/idt stuff __init now. > > That makes my previous fix obsolete, right? Yes. K. Y > > Thanks, > > tglx >