Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9932341rwr; Fri, 12 May 2023 01:04:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5V/UaoGcLjCOivBb9unAd08YeeeSCbYKrzh/y7RcPgbMBd5W8m6FTG5vjkSHgPwjVF26em X-Received: by 2002:a17:90a:9906:b0:23f:83de:7e4a with SMTP id b6-20020a17090a990600b0023f83de7e4amr22787692pjp.7.1683878641621; Fri, 12 May 2023 01:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683878641; cv=none; d=google.com; s=arc-20160816; b=O7il7pbA6p+DWEoUA3M9W897n7QFkhkQFj36sMJU9kIa0h4DEFsrZluEANlSVSDzuk khbKObZBHV65ng7LWFXkhmPhQ67NVQNo/AqpKvwccez6RWaktTFTgUMF0p/Pi03UIEGq EvEsnOTSnYL+duexZtv+tziUbAhOEF1MPIPV82Fx59JaG7MRwJB/0g4SImn2pTRYaBnq jWDdVmlG+MOayIGs2je+vudXsUMaRByeXEmwtSYu81q+sQe6RU0Zm6PbzfDy2Nbb5n2C 1wZhyxBO+7P264W1kNekcUFziZlIuazwL5S8d7RehKZUrUlNGMmdzBgwxTNYKZexozN+ vQgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=1V8lxBdwYKPl36jH8/r7eKXviqpECb1L0Oc7etXyHQ0=; b=ogXYvaV3TQrF7L2VUU4GcnYT7klNqnFX2gwqhSo3zdn4S7TZtnUqQNKeNwFyIiWPN3 cO8eoU7Kp8p2+ezk4RpAmw0ysieM3n+aD6LquX+lGjdwvZindoahRJOsHYAZjKm+Ii0G a8JWRdna5Aj4VsskkYrCgEjkWOvOyt00ztID+Acaa1Mlq932CetdiNgC0E5VF+v897pA KooSmkWGACXGXycPa4uXiM0bmBbw9LV6bai2tbqDvMkWoWI9VaMvqrS+Xlf9+VY2BcS9 NG4yNwZYiU80O3I14mOYo1dhdlJGNxMCQ8o9zMtcql0mX4pK6ZhF4Jc1de0Tf0R+lcGu 1Xbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tw4wiNJB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ep23-20020a17090ae65700b0024de12511casi22016479pjb.56.2023.05.12.01.03.47; Fri, 12 May 2023 01:04:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tw4wiNJB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240298AbjELHvM (ORCPT + 99 others); Fri, 12 May 2023 03:51:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239991AbjELHvK (ORCPT ); Fri, 12 May 2023 03:51:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0451900B; Fri, 12 May 2023 00:51:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 53B3B65384; Fri, 12 May 2023 07:51:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFE2AC433EF; Fri, 12 May 2023 07:51:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683877868; bh=xQJ6kpGBdd8sMe9djXAeDmkVMiiz4MwCxAnjryMRGP0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Tw4wiNJBJmWZsvKinXNZwXCJc8CJP8zJqZ56sGWKW8umDPbGIQ3KwNLn6bDZ4fjqY Afwga5cdvBkcbgsQAfzQge0Gg/z4bUELXtpISFrZJTdwbygBQ35jbnXg/1Y3obhzJC aLcZRUwMwpuJjfy4D0DTQNB0KdDvBqRBDi3m32kOzfXa8jPixC1MQvZZ+PZLalDPY6 yaXlnp/7JBYhPr3plLjrFofQBv5+NskX5hl3lBbDkoX5xdhumjd8w9QTK2vh1GbWnx g05WgbqI6gEe48DuZspT02HDarfVtlgUDELvdRMbfIe/EnxqVv7GYss+UIZL316yev 3bJ9sKebTTJFw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pxNYQ-00EVeu-HZ; Fri, 12 May 2023 08:51:06 +0100 Date: Fri, 12 May 2023 08:51:06 +0100 Message-ID: <86wn1em1hx.wl-maz@kernel.org> From: Marc Zyngier To: =?UTF-8?B?IllpLURlIFd1ICjlkLPkuIDlvrcpIg==?= Cc: "corbet@lwn.net" , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , "angelogioacchino.delregno@collabora.com" , "linux-mediatek@lists.infradead.org" , "linux-arch@vger.kernel.org" , =?UTF-8?B?Ik1Z?= =?UTF-8?B?IENodWFuZyAo6I6K5piO6LqNKSI=?= , "devicetree@vger.kernel.org" , "quic_tsoni@quicinc.com" , =?UTF-8?B?IlNoYXduIEhz?= =?UTF-8?B?aWFvICjola3lv5fnpaUpIg==?= , =?UTF-8?B?Ik1pbGVzIENoZW4gKOmZs+awkeaouiki?= , =?UTF-8?B?IlBlaUx1biBTdWVpICjpmovln7nlgKspIg==?= , =?UTF-8?B?IkxpanUtY2xyIENoZW4gKOmZs+m6lw==?= =?UTF-8?B?5aaCKSI=?= , =?UTF-8?B?IkphZGVzIFNo?= =?UTF-8?B?aWggKOaWveWQkeeOqCki?= , "catalin.marinas@arm.com" , "dbrazdil@google.com" , "linux-arm-kernel@lists.infradead.org" , =?UTF-8?B?IllpbmdzaGl1YW4gUGFu?= =?UTF-8?B?ICjmvZjnqY7ou5IpIg==?= , "krzysztof.kozlowski+dt@linaro.org" , "matthias.bgg@gmail.com" , "arnd@arndb.de" , "linux-doc@vger.kernel.org" , =?UTF-8?B?IlplLXl1IFdhbmcgKOeOi+a+pOWuhyki?= , "will@kernel.org" , =?UTF-8?B?Ikl2YW4gVHNlbmcgKOabvg==?= =?UTF-8?B?5b+X6LuSKSI=?= Subject: Re: [PATCH v2 5/7] virt: geniezone: Add irqchip support for virtual interrupt injection In-Reply-To: <762e3494ed468f0337b1c336615065b154396d23.camel@mediatek.com> References: <20230428103622.18291-1-yi-de.wu@mediatek.com> <20230428103622.18291-6-yi-de.wu@mediatek.com> <762e3494ed468f0337b1c336615065b154396d23.camel@mediatek.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: Yi-De.Wu@mediatek.com, corbet@lwn.net, linux-kernel@vger.kernel.org, robh+dt@kernel.org, angelogioacchino.delregno@collabora.com, linux-mediatek@lists.infradead.org, linux-arch@vger.kernel.org, MY.Chuang@mediatek.com, devicetree@vger.kernel.org, quic_tsoni@quicinc.com, shawn.hsiao@mediatek.com, Miles.Chen@mediatek.com, PeiLun.Suei@mediatek.com, Liju-clr.Chen@mediatek.com, jades.shih@mediatek.com, catalin.marinas@arm.com, dbrazdil@google.com, linux-arm-kernel@lists.infradead.org, Yingshiuan.Pan@mediatek.com, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, arnd@arndb.de, linux-doc@vger.kernel.org, Ze-yu.Wang@mediatek.com, will@kernel.org, ivan.tseng@mediatek.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 12 May 2023 08:19:31 +0100, "Yi-De Wu (=E5=90=B3=E4=B8=80=E5=BE=B7)" wrote: >=20 > On Fri, 2023-04-28 at 19:59 +0100, Marc Zyngier wrote: > > External email : Please do not click links or open attachments until > > you have verified the sender or the content. > >=20 > >=20 > > On 2023-04-28 11:36, Yi-De Wu wrote: > > > From: "Yingshiuan Pan" > > >=20 > > > Enable GenieZone to handle virtual interrupt injection request. > > >=20 > > > Signed-off-by: Yingshiuan Pan > > > Signed-off-by: Yi-De Wu > > > --- > > > arch/arm64/geniezone/Makefile | 2 +- > > > arch/arm64/geniezone/gzvm_arch.c | 24 ++++++-- > > > arch/arm64/geniezone/gzvm_arch.h | 11 ++++ > > > arch/arm64/geniezone/gzvm_irqchip.c | 88 > > > +++++++++++++++++++++++++++++ > > > drivers/virt/geniezone/gzvm_vm.c | 75 ++++++++++++++++++++++++ > > > include/linux/gzvm_drv.h | 4 ++ > > > include/uapi/linux/gzvm.h | 38 ++++++++++++- > > > 7 files changed, 235 insertions(+), 7 deletions(-) > > > create mode 100644 arch/arm64/geniezone/gzvm_irqchip.c > >=20 > > [...] > >=20 > > > +++ b/arch/arm64/geniezone/gzvm_irqchip.c > > > @@ -0,0 +1,88 @@ > > > +// SPDX-License-Identifier: GPL-2.0 > > > +/* > > > + * Copyright (c) 2023 MediaTek Inc. > > > + */ > > > + > > > +#include > > > +#include > >=20 > > NAK. > >=20 > > There is no way you can rely on anything from KVM in > > your own hypervisor code. > >=20 >=20 > Same with previous discussion, we'd like to copy or rename the related=20 > part from KVM and keep the maintainance at our own if it's ok. Why do you need *ANY* of the KVM stuff? Please fully enumerate these dependencies and why you have them. Directly using KVM stuff for something completely unrelated is not OK, and will never be. M. --=20 Without deviation from the norm, progress is not possible.