Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp448004ybh; Thu, 12 Mar 2020 05:06:51 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtgiw9ObZmFH/N9DJfHagw1EIxLxby6JxoU18VGqE0gXdLD1BqUue3nSsVHD00mA+IBRT6A X-Received: by 2002:a9d:20c1:: with SMTP id x59mr6367454ota.286.1584014811023; Thu, 12 Mar 2020 05:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584014811; cv=none; d=google.com; s=arc-20160816; b=jmACIhglvjsdYhJfJxxQFH4eKjt3gOMTPmABYmGyDCVAixKDCM/8lOvhqYQlsDH5DG nPaXK5QAIqFNgUf744n6/kG6/cOpRkJ4gxFOMK1ANqcB16LP01oXFv84CyBV0DBoQ2uJ YrSlMk+MUN8gqCHuhPOYseARYINGmIPE/VVb/bf7AZExjqcXNAzCr+mFt7ujwS56lQXr B/JayaBOyFOQpJ8ECZIS+T7z0mU71cWFs0xrVTttzMYPD8Xn0C154nlnWUA+N0G64Zvd 6ciCPIRehPcC7FdebdWyMiMF8QJj5gduNg4J58M1Volstu7ILVv6fkDDPgBp5I0Kzvkt Q1IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=hiO334tBafKb72HzomzlEOd1tJt5j2k5wUEJAtoIIQg=; b=aGQNpQ88p3TdxaNfeS+vwjx30DXo9fkD8CRNNLjIg+0T2ExrEzPSEdNPoNw+5vxYbk Nx5s47IfEMl0PJhfvkXGBK24jv/qQDU6uj7DHN1TR2nUKXl8oZcIWZnocmaLg/+e2B72 O+5SKLZFoUCEJ4eHvERT7Rt7xXoBb2ukW7yECcRCHv6O4P7z+RnT3qY5GKgHv8zZv+Ke nukN5VB4SRsAKSNyTkCAsd86m14pgORI2EoQF5mGtgDihr05YV2y2NOHNhknNpKSN0r9 DTDswDK/yfmPgFwd48EpDoCuDZzZ7QoD7dcVXUxD+AMIUzENT9hr7px6plhSP01bf5D+ 6QKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xMSz8X+0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g35si2733373otg.32.2020.03.12.05.06.36; Thu, 12 Mar 2020 05:06:51 -0700 (PDT) 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=xMSz8X+0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727007AbgCLMFI (ORCPT + 99 others); Thu, 12 Mar 2020 08:05:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:40600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbgCLMFI (ORCPT ); Thu, 12 Mar 2020 08:05:08 -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 967DB206E7; Thu, 12 Mar 2020 12:05:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584014707; bh=kF1jN8Wxs2QJYXtiW/6/YPILqARijKLxcTLHrblKp4U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=xMSz8X+0VXtjyVOmUmgY3wXSKQTgBmi1+2IsmfOShGZSY/RDKa1wL6/UIClcZYUK2 mjK9DrRrxe8P8dn0eVzIOEyjY9i1E7TE0OqZwj/KTjVT/ulAIWr0rvFFpu/FJJiL5P M3Xdaxx4zwUu4eC4bcu9xVh8m113xDUJpkMkZiQw= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCMaH-00CCnj-Tk; Thu, 12 Mar 2020 12:05:06 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 12 Mar 2020 12:05:05 +0000 From: Marc Zyngier To: Zenghui Yu Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Lorenzo Pieralisi , Jason Cooper , Robert Richter , Thomas Gleixner , Eric Auger , James Morse , Julien Thierry , Suzuki K Poulose Subject: Re: [PATCH v5 01/23] irqchip/gic-v3: Use SGIs without active state if offered In-Reply-To: <51b2c74fdbcca049cc01be6d78c7c693@kernel.org> References: <20200304203330.4967-1-maz@kernel.org> <20200304203330.4967-2-maz@kernel.org> <63f6530a-9369-31e6-88d0-5337173495b9@huawei.com> <51b2c74fdbcca049cc01be6d78c7c693@kernel.org> Message-ID: <1bff1835ba7d6e22edb836d38cf16a14@kernel.org> X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/1.3.10 X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, lorenzo.pieralisi@arm.com, jason@lakedaemon.net, rrichter@marvell.com, tglx@linutronix.de, eric.auger@redhat.com, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-03-12 09:28, Marc Zyngier wrote: > Hi Zenghui, > > On 2020-03-12 06:30, Zenghui Yu wrote: >> Hi Marc, >> >> On 2020/3/5 4:33, Marc Zyngier wrote: >>> To allow the direct injection of SGIs into a guest, the GICv4.1 >>> architecture has to sacrifice the Active state so that SGIs look >>> a lot like LPIs (they are injected by the same mechanism). >>> >>> In order not to break existing software, the architecture gives >>> offers guests OSs the choice: SGIs with or without an active >>> state. It is the hypervisors duty to honor the guest's choice. >>> >>> For this, the architecture offers a discovery bit indicating whether >>> the GIC supports GICv4.1 SGIs (GICD_TYPER2.nASSGIcap), and another >>> bit indicating whether the guest wants Active-less SGIs or not >>> (controlled by GICD_CTLR.nASSGIreq). >> >> I still can't find the description of these two bits in IHI0069F. >> Are they actually architected and will be available in the future >> version of the spec? I want to confirm it again since this has a >> great impact on the KVM code, any pointers? > > Damn. The bits *are* in the engineering spec version 19 (unfortunately > not a public document, but I believe you should have access to it). > > If the bits have effectively been removed from the spec, I'll drop the > GICv4.1 code from the 5.7 queue until we find a way to achieve the same > level of support. > > I've emailed people inside ARM to find out. I've now had written confirmation that the bits are still there. It is just that the current revision of the documentation was cut *before* they made it into the architecture (there seem to be a 6 month delay between the architecture being sampled and the documentation being released). M. -- Jazz is not dead. It just smells funny...