Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4557054ybv; Mon, 17 Feb 2020 01:19:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxMJSG+717wrSi6Yab3AdIWvlgHNBEKhIJwXHaCytyAA3gXnOQA5TX+7JgZGtmqyuTeHLtZ X-Received: by 2002:a05:6808:8d0:: with SMTP id k16mr9327588oij.68.1581931178620; Mon, 17 Feb 2020 01:19:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581931178; cv=none; d=google.com; s=arc-20160816; b=h9VqPr+GbcHNptanBHvUtepJq78+jO5sQi7Q2qEG6M733AE7DuTYXzrcKwiTIwHoEw SRz30p8aPYBbEaZ6pu5ljdbP9p70/JLOM4vJc+NYOLKB+qeMYFAD640mbdcVPwVpjCoJ pPTwEqSqbyTReM7+w7LDaKwa2CH9CMW38tygC4twwrgWxKzoiUHOmkjjvKRwQFK6HE3X aY6n1JtbeQ0ujd8Sqxmat9YhW6R9S7/f4IEXDINGBBifeL3zJughKcHI2QtE6iSaLLVp AV5uo0pcPa2zYLcekbcM986KCeZ9sFRWtjOcZ+3VEDZ1UoB5JWZPWQrRKox9RAU9w3P8 VykA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=fsXJPlw0UWn3nwXOoSne/0YJ15RwpyCR+mOOS7pyQrQ=; b=g7P4MQ77qcMCmyP1+pdjg9zIWpQYxNXQ6R9GI8uRFlmasqC+Bzx60pyOq+eqRUU5lF DTkC9j86ieH69UKoCEOOdBIz4lR+gR74H02m7uIlDEPlcfxj57MtZ/zpO3L0uJJ+r10i 8B761lO9fCuP0fuG9c6bzNF+gbk+mMqqlgYF6b6mIL+9qpi/BiG9seEbA2CHqUxCMB8p VGYweOODF8+4MLhEPbIl8arPBZN9u2nkXLoYv8ry/1Zcu2veIym5il9m1j3qVYiatezY UjGxgWF0DGnnInMuEMQOieW7jqfMX2rjcTByXbA37EL/wrFuBQ8Y7iypw9Dzbm7aO+dj u/5w== ARC-Authentication-Results: i=1; mx.google.com; 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 g72si6760788oib.157.2020.02.17.01.19.26; Mon, 17 Feb 2020 01:19:38 -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; 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 S1728811AbgBQJSX (ORCPT + 99 others); Mon, 17 Feb 2020 04:18:23 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:10626 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728272AbgBQJSX (ORCPT ); Mon, 17 Feb 2020 04:18:23 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 8B5BF7C85E4B5CC973CB; Mon, 17 Feb 2020 17:18:18 +0800 (CST) Received: from [127.0.0.1] (10.173.222.27) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Mon, 17 Feb 2020 17:18:11 +0800 Subject: Re: [PATCH v4 02/20] irqchip/gic-v3: Use SGIs without active state if offered To: Marc Zyngier , , , , CC: Lorenzo Pieralisi , Jason Cooper , Robert Richter , "Thomas Gleixner" , Eric Auger , "James Morse" , Julien Thierry , Suzuki K Poulose References: <20200214145736.18550-1-maz@kernel.org> <20200214145736.18550-3-maz@kernel.org> From: Zenghui Yu Message-ID: Date: Mon, 17 Feb 2020 17:18:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: <20200214145736.18550-3-maz@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.173.222.27] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On 2020/2/14 22:57, 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). > > A hypervisor not supporting GICv4.1 SGIs would leave nASSGIcap > clear, and a guest not knowing about GICv4.1 SGIs (or definitely > wanting an Active state) would leave nASSGIreq clear (both being > thankfully backward compatible with oler revisions of the GIC). older? > > Since Linux is perfectly happy without an active state on SGIs, > inform the hypervisor that we'll use that if offered. > > Signed-off-by: Marc Zyngier Per the description of these two bits in the commit message, Reviewed-by: Zenghui Yu Thanks