Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932233AbcLGPEc (ORCPT ); Wed, 7 Dec 2016 10:04:32 -0500 Received: from mail-sn1nam01on0138.outbound.protection.outlook.com ([104.47.32.138]:43360 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932109AbcLGPEb (ORCPT ); Wed, 7 Dec 2016 10:04:31 -0500 From: KY Srinivasan To: Olaf Hering , "vkuznets@redhat.com" CC: "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" Subject: RE: move hyperv CHANNELMSG_UNLOAD from crashed kernel to kdump kernel Thread-Topic: move hyperv CHANNELMSG_UNLOAD from crashed kernel to kdump kernel Thread-Index: AQHSUGcX2rMR2fVQK0y/0wJ0y+Ek/aD8lNrQ Date: Wed, 7 Dec 2016 15:04:29 +0000 Message-ID: References: <20161207085110.GC1618@aepfle.de> In-Reply-To: <20161207085110.GC1618@aepfle.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=kys@microsoft.com; x-originating-ip: [2601:600:8c00:1040:610d:6d5b:cbd7:998c] x-ms-office365-filtering-correlation-id: ead28f87-b31f-4b0e-8033-08d41eb257ed x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR03MB2492; x-microsoft-exchange-diagnostics: 1;DM5PR03MB2492;7:M2jCgJtCV3Zqiux1lAezHnwdvjTHrGswjt7/Y5eZMh47VJTq69HvvpAynNJO+nWp/dWlLKnTJ+R16Ipgau8Ke+3YR6+crPE00rYjFsEv1V4PW4jbJQa4mM4uuxv+xJDCTvLdZ4p3e5ZERC6QN78xms03dTL8/kih0y9L/+bSHxrhJgAj2eFqpe+XWaFligbNq2R2aSInDRH4YWhLk8SkljILl3USU/fXbD5iBRIertzQCKUI3VO1qkzC3kAeUfrbG3kt5yJHEIbc6rN+HuMlH84kE6KO8j5G6XbM/u1+hVfQA3V4ezUaKopCqP2GfN7oorsFWtpbxk7pkVMmVUSwKM9I3GvOdsmIefPZH1eCHQa7JWO+pLUS2R/I3U/jlS+F+54LUwS/bwzXHOPdMRbQMpm1cvjJ5sG1LMewgY1bi8dv5ahggwN/In/9zBQr4xUlKefw82nYEqRGKQ1nB/R3yEYIwfx60ihl0+ymXZ6itqo= x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(20161123558021)(6047074)(6072148);SRVR:DM5PR03MB2492;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB2492; x-forefront-prvs: 01494FA7F7 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(377454003)(199003)(189002)(13464003)(77096006)(39410400001)(6506006)(6116002)(229853002)(8936002)(8676002)(33656002)(81166006)(81156014)(39450400002)(102836003)(9686002)(39850400001)(97736004)(39860400001)(5001770100001)(39840400001)(122556002)(8990500004)(2906002)(10090500001)(92566002)(86362001)(4326007)(2950100002)(86612001)(38730400001)(189998001)(5005710100001)(5660300001)(7696004)(2900100001)(10290500002)(106356001)(106116001)(3280700002)(76576001)(99286002)(3660700001)(105586002)(76176999)(305945005)(54356999)(50986999)(74316002)(68736007)(7846002)(2501003)(7736002)(101416001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR03MB2492;H:DM5PR03MB2490.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Dec 2016 15:04:29.1674 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2492 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 base64 to 8bit by mail.home.local id uB7F4dlU028031 Content-Length: 1514 Lines: 37 > -----Original Message----- > From: Olaf Hering [mailto:olaf@aepfle.de] > Sent: Wednesday, December 7, 2016 12:51 AM > To: KY Srinivasan ; vkuznets@redhat.com > Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org; > devel@linuxdriverproject.org > Subject: move hyperv CHANNELMSG_UNLOAD from crashed kernel to > kdump kernel > > KY, > > if a hyperv VM crashes alot of work must be done to prepare the > environment for the kdump kernel. This approach is different compared to > all the other VM types, or baremetal. Since the just crashed kernel is > per definition unreliable all that work should be done within the kdump > kernel because I think a reliable environment exists only there. > > Was it ever considered to do the CHANNELMSG_UNLOAD / > CHANNELMSG_UNLOAD_RESPONSE work during boot, instead of doing it > before > starting the kexec/kdump kernel? > > What would it take to prepare the runtime environment during boot? > Does the newly booted kernel need any info from the previous kernel, > something that cant be determined during boot? If yes, how can such info > be passed from the old kernel to the new kernel? Yes; I had played with this approach a while ago. The issue is that the host knows about a bunch of in memory state that will be different in the kexec kernel. For instance if we did all the cleanup as part of the boot sequence, we will need access to all the interrupt/messaging infrastructure that was set up in the previous kernel. K. Y > > Olaf