Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4907871pxj; Tue, 22 Jun 2021 10:35:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB3GYiw0LQcxzW4EbPmd13cYJZyLjRTiI10LgymWmZlk0TZvtfIgyys9DXPeoMpr7H+7zf X-Received: by 2002:a5e:940a:: with SMTP id q10mr3813668ioj.19.1624383316860; Tue, 22 Jun 2021 10:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624383316; cv=none; d=google.com; s=arc-20160816; b=uotjfUt8J7Y5wEZ4rT08qj86S5NlBvbo/KEiqjtWJ18Ewkw3moW+GnBUhry3OeQwEq huupJrXfdsn6kooLp+LA8tc1bGEwaNjpo9Q5YEGi8eLOeYTmvJTRqxL06bH42YfGbcB3 7BD4u4GU8JNW2FQqRbK1RQGa2P3F2H01jm5RXkLrCnaXpCZ/tx6VJ1xILmb0HwA2GLV/ 2wOSrjGw5YeNgD4h5MO1nhxXVUKJhn/wwzbqCE1qVr0vUIXt8GUG6MyOQVxIssDkxTMH uHBhTfa4cbtjNLOAOzWQxynWt3UidVMHaHMpA2NRmpY6R0ymBszDDUdUkHULqW7ydtRm muOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=o9xf9N1chVYr9GNfoLI+IvSK23W2LSOPizgxkiYsUV4=; b=VC2BJfLHNwbYp0CoJr4p3yI+RgOZEwY1xu2S3tKX9txxiyPRSU4yP5aY0bISMeAaFV KzyfZX/vCVKxTXtSbbxCaLDy8OheymN2PTQU7gEoXGhyxLDvmwrKFhT+4r3N2pPfiWh8 fVJF2Ba0ZZySCzek9WHJLTp/UDMjmzTP/Zx98HBTRmqh06scy8C8svGADhHJD9CvP81O e12Lyq+LzbmsoIyTcFw9MvYzpHaacb0070pK8HAm6bm24rZwxX/8KRsaO6bxmgZFhYux tnrnJTDjYWOhk4Ky2jJ5JSCxozZItft0ykm2fsNjkGGbwwZhQR/Qca6pSq26pY/GQL4R JAPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p14si25400887iov.42.2021.06.22.10.35.03; Tue, 22 Jun 2021 10:35:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231964AbhFVRfG (ORCPT + 99 others); Tue, 22 Jun 2021 13:35:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:43476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbhFVRfF (ORCPT ); Tue, 22 Jun 2021 13:35:05 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (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 F2CDD61075; Tue, 22 Jun 2021 17:32:49 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lvkGV-009E0J-Re; Tue, 22 Jun 2021 18:32:48 +0100 Date: Tue, 22 Jun 2021 18:32:47 +0100 Message-ID: <87sg19by9s.wl-maz@kernel.org> From: Marc Zyngier To: Boqun Feng Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, Arnd Bergmann , Bjorn Helgaas , Linux ARM , Catalin Marinas , Will Deacon Subject: Re: [RFC 0/2] irqchip/gic-v3-its: Introduce virtual ITS In-Reply-To: <20210622155313.3819952-1-boqun.feng@gmail.com> References: <20210622155313.3819952-1-boqun.feng@gmail.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/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: boqun.feng@gmail.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, arnd@arndb.de, bhelgaas@google.com, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, will@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Jun 2021 16:53:11 +0100, Boqun Feng wrote: > > Hi Marc, > > Here is an RFC for supporting platforms having LPI supported but without > ITS. And this is for the virtual PCI support for ARM64 Hyper-V guests. > We currently choose this approach (LPI w/o ITS) because a) it's allowed > for GICv3 and b) ITS may not be a more efficient way to configure LPIs > compared to hypercalls, but we'd like to get feedbacks from the > community. > > Besides, patch #1 fixes a bug which I found while I was at it. > > Looking forwards to any comment and suggestion! My suggestion is to not do that. The ITS driver is used to drive an ITS. That, and only that. The simple fact that you mention hypercalls shows that this is *not* what the architecture allows. So if you are going to implement something that is evidently outside of the scope of the architecture, keep it in some Hyper-V specific code that doesn't involve the ITS driver. All you need is something that will piggy-back on top of the GIC driver using a hierarchical driver. We support that today. Of course, you'll have to invent your own firmware interface for discovery. Thanks, M. -- Without deviation from the norm, progress is not possible.