Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754335AbcK1G4c (ORCPT ); Mon, 28 Nov 2016 01:56:32 -0500 Received: from mail-by2nam03on0113.outbound.protection.outlook.com ([104.47.42.113]:54336 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754053AbcK1G40 (ORCPT ); Mon, 28 Nov 2016 01:56:26 -0500 X-Greylist: delayed 2143 seconds by postgrey-1.27 at vger.kernel.org; Mon, 28 Nov 2016 01:56:26 EST From: Dexuan Cui To: Stephen Hemminger , Vitaly Kuznetsov CC: "devel@linuxdriverproject.org" , "linux-kernel@vger.kernel.org" , KY Srinivasan , Haiyang Zhang Subject: RE: [PATCH 0/7] hv: CPU onlining/offlining fixes and improvements Thread-Topic: [PATCH 0/7] hv: CPU onlining/offlining fixes and improvements Thread-Index: AQHSRxpF7kwxSjeMDUGqp5sebchEqKDrgICAgAJ0eqA= Date: Mon, 28 Nov 2016 06:56:23 +0000 Message-ID: References: <1480078123-17582-1-git-send-email-vkuznets@redhat.com> <20161126090557.73dd4df7@samsung9.wavecable.com> In-Reply-To: <20161126090557.73dd4df7@samsung9.wavecable.com> 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=decui@microsoft.com; x-originating-ip: [2404:f801:9000:18::6bc] x-ms-office365-filtering-correlation-id: ec4afdd0-666c-4ca0-763c-08d4175baa79 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:MWHPR03MB2496; x-microsoft-exchange-diagnostics: 1;MWHPR03MB2496;7:BwUzN3QiDLbf92jaggezv0dw1lPnbQS8Qqjb3KjobxnyvADXDbr93v7XAqKcFP1m/d8PXH+kg9zKONSjAG+EFoezG1djswP27YvwDkU4/SWBS7m7Jm8p15bU1UPmi7yI6lO0Vmh+gd1AgwbxVjnzs96EukVg1fu/PdEJVqkks2dbA5Hw84fv3mfAn5mB5ymiLiZciDLWvY+WKSwjm9kBr6Z4CuEi0ZJf2EK4H0N19cKhmnv/vdioFv/l+dh0P+EN3MFipBWUuL6aFDfKUAhhZO6zB1cEpiIZaHWTaRoAJBDz72gMkdqlRWx/OV5wSCFqjFvk77kRHg4yxqUu58cDnWbQwU2z5HyynaH5PcVUOe+25tIlVmHyvvseJOlHeenEupLh+1bIMX/3WGNKxE5YAdms5OGrROGkWSub4hrbtsiagd+NkcRQDyTc3IhIXzbbttAFzr1BnZhO+t2iZaQoLcMBx9T52uNWyI5MAP2cX3k= x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(209352067349851)(9452136761055); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6045199)(6040361)(6060326)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(61426038)(61427038)(6061324)(6041248)(6046074)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(6072148)(6042181)(6047074);SRVR:MWHPR03MB2496;BCL:0;PCL:0;RULEID:;SRVR:MWHPR03MB2496; x-forefront-prvs: 01401330D1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(189002)(199003)(24454002)(305945005)(86612001)(2906002)(92566002)(33656002)(3660700001)(106356001)(106116001)(105586002)(7696004)(5660300001)(5890100001)(4001430100002)(99286002)(107886002)(76576001)(2950100002)(7736002)(4326007)(7846002)(2900100001)(68736007)(5001770100001)(38730400001)(86362001)(81166006)(8676002)(10090500001)(97736004)(8936002)(81156014)(102836003)(3280700002)(74316002)(54356999)(229853002)(76176999)(122556002)(10290500002)(6116002)(50986999)(8990500004)(77096006)(189998001)(5005710100001)(9686002)(6506003)(101416001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR03MB2496;H:MWHPR03MB2669.namprd03.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: 28 Nov 2016 06:56:23.3170 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2496 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 mail.home.local id uAS6ubSC028796 Content-Length: 1509 Lines: 33 > From: Stephen Hemminger [mailto:stephen@networkplumber.org] > Sent: Sunday, November 27, 2016 01:06 > To: Vitaly Kuznetsov > Cc: devel@linuxdriverproject.org; linux-kernel@vger.kernel.org; KY Srinivasan > ; Haiyang Zhang ; Dexuan Cui > > Subject: Re: [PATCH 0/7] hv: CPU onlining/offlining fixes and improvements > > On Fri, 25 Nov 2016 13:48:36 +0100 > Vitaly Kuznetsov wrote: > > > Some time ago we forbade CPU offlining for Hyper-V and this was sufficient > > if you boot with all CPUs onlined. Turns out, people may want to limit the > > number online CPUs by passing 'maxcpus=' kernel parameter and we hit a > > crash in Hyper-V code in this case. After some thinking, I think we may not > > only fix the crash but also make the offlining prevention fine-grained: we > > need to prevent from offlining CPUs which have VMBus channels attached > > only. All offlined CPUs may always be onlined. > > > > As a temporary solution this is ok, but long term we need to support > dynamic CPU online/offline. If a CPU is bound to some channels, it seems impossible to make it offline, unless Hyper-V supplies a mechanism to dynamically rebind the channels (i.e. without closing & opening the channels) to another CPU, e.g. CPU0. Currently it looks there is no such mechanism. For CPU online, my understanding is: this patchset of Vitaly actually makes it work (see PATCH 6/7). Thanks, -- Dexuan