Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp349542imu; Mon, 26 Nov 2018 22:56:34 -0800 (PST) X-Google-Smtp-Source: AJdET5deVjRcGoa4FQN96/yCDowBj76TS9fuxO0Peji/vKSDtmF1H4QdrIR15GGqf9412NmIDY2G X-Received: by 2002:a62:5716:: with SMTP id l22mr31523732pfb.16.1543301794648; Mon, 26 Nov 2018 22:56:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543301794; cv=none; d=google.com; s=arc-20160816; b=oU8aI1py2ZkgrGU2Vs1gQ/FGA3mjM8TErV7l/jAnnEUbbIFPTXhYLSpOHGScGphHhO NVOKizA/SA7eu6fuE94HPkKEDZTV0xYfPaa8YF8FJMUgTWwhD1haTCvjsu8iF6Obl8lh f8baa68GNTkrnZpZGXgx8bsTD5e2zNTaLxT/mavIk+eyhs6jv4oKyNwaG3N7C6NHMf/C azbP1YhQT2OyIJi7m1BbpZUYosGV1YIrDX0c4OR32Vj67WPcXwNfYexkatwYIyMtjUzo n+n6vN8SZ8bbNP3WKIRuGgjZlljIVx8IYlx/YQMJogCy9MypJUoz4QKKD0gYybPJZfGU NaGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=epT/ALpkGBOvh/hzD3ua2SsAM9Hcnk64dlWcvasa3Gg=; b=qjE38r75KVxHIL3o97hghUKt5dJ6OflH9xV5hSMk3o4bpWG8tHL0p9F4EJAmOn6oTX 5pX9rSUo4n1eXeldynxu6wo4HGB8fhIPrsOra+IOIn+ZChZYRkbbZ/XKyBlHCLSOL6VS JBMZ8BULdLHNP/NGZ66HX8hDyKxuw5wozFVCUAMNr0pRJ69WpE4eDJgeeTrUTjQNnG23 ST4H4uHi9FTpagvuTit0kUBRyldPchqyjyBM+oaDVKXDtb2H13MRlSudbbwFDUScHaW8 PGsueHwAA6h8wX2bIVB8x+07XRk4rQxf+w4ZCCBLNXn11iDY/P1QoPkRv/QVC5s7srZ0 lq5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YqzgXf42; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t69si2909896pgb.365.2018.11.26.22.56.20; Mon, 26 Nov 2018 22:56:34 -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=@kernel.org header.s=default header.b=YqzgXf42; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728809AbeK0RRt (ORCPT + 99 others); Tue, 27 Nov 2018 12:17:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:54118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727331AbeK0RRs (ORCPT ); Tue, 27 Nov 2018 12:17:48 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E4CFF208E4; Tue, 27 Nov 2018 06:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543299660; bh=Y8+fsSghj7a6U+nW9R6tZWaPwTjKthOd8ZxhM1P11dk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YqzgXf420FklRqiXjotB4wmVMsX0X2hSFe54iH1MWHj5sLg1H4jzBzGZzSgNd5pG9 BkoYvqcdnXSkKJuIadGwwuWIjlEx6yhLnXHu2avB/mcH3ONL4B/QTk0TyY8JXDTNXj nGLyan+ftLGLUqnVubmY2hMryxE6jPOhnnmAQPBw= Date: Tue, 27 Nov 2018 07:20:56 +0100 From: Greg KH To: Michael Kelley Cc: KY Srinivasan , "will.deacon@arm.com" , "catalin.marinas@armm.com" , "mark.rutland@arm.com" , "marc.zyngier@arm.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "olaf@aepfle.de" , "apw@canonical.com" , "jasowang@redhat.com" , Stephen Hemminger , vkuznets Subject: Re: [PATCH 3/4] Drivers: hv: vmbus: Add hooks for per-CPU IRQ Message-ID: <20181127062056.GA30285@kroah.com> References: <20181122030914.16274-1-kys@linuxonhyperv.com> <20181122031059.16338-1-kys@linuxonhyperv.com> <20181122031059.16338-3-kys@linuxonhyperv.com> <20181126192101.GC32208@kroah.com> <20181126195727.GA9957@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.0 (2018-11-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 26, 2018 at 08:56:50PM +0000, Michael Kelley wrote: > From: Greg KH Monday, November 26, 2018 11:57 AM > > > > > You created "null" hooks that do nothing, for no one in this patch > > > > series, why? > > > > > > > > > > hv_enable_vmbus_irq() and hv_disable_vmbus_irq() have non-null > > > implementations in the ARM64 code in patch 2 of this series. The > > > implementations are in the new file arch/arm64/hyperv/mshyperv.c. > > > Or am I misunderstanding your point? > > > > So you use a hook in an earlier patch and then add it in a later one? > > > > Shouldn't you do it the other way around? As it is, the earlier patch > > should not work properly, right? > > The earlier patch implements the hook on the ARM64 side but it is > unused -- it's not called. The later patch then calls it. Wouldn't the > other way around be backwards? Ah, it wasn't obvious that the previous patch added it at all, why not just make that addition part of this patch? > The general approach is for patches 1 and 2 of the series to provide > all the new code under arch/arm64 to enable Hyper-V. But the code > won't get called (or even built) with just these two patches because > CONFIG_HYPERV can't be selected. Patch 3 is separate because it > applies to architecture independent code and arch/x86 code -- I thought > there might be value in keeping the ARM64 and x86 patches distinct. > Patch 4 applies to architecture independent code, and enables the > ARM64 code in patches 1 and 2 to be compiled and run when > CONFIG_HYPERV is selected. > > If combining some of the patches in the series is a better approach, I'm > good with that. Ok, that makes more sense, if it is easier to get the ARM people to review this, that's fine. Doesn't seem like anyone did that yet :( sorry for the noise, greg k-h