Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp177241ybh; Wed, 11 Mar 2020 23:32:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvVGzC4b0hSu1dPTXCYy2zxHUH7MkXnw3ybLNPvrvLvaEpCsfyESKQ3ylhmlzSNjnoaDcdo X-Received: by 2002:aca:c6ca:: with SMTP id w193mr1454880oif.165.1583994767339; Wed, 11 Mar 2020 23:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583994767; cv=none; d=google.com; s=arc-20160816; b=qTa6r0mvl1hUfUsZ3w2Pd3s4Nhv5wjeGcLWsOBBiXyqWnh/ydevszoxElcwaI41ec4 56wC3mDOsMM68D9KS4wXMecdF4Kve1BvBHHxN9aPWSZjyds8HM0tK14ZK2c2iql8u4Jg 8ez7bvgpxHzRxnMlniA1Rf67qGRaHaHbwNt1Hz8zeCVGmueCblkQ/p7bI7R0usUcJOqG uZUcQJJpGYUoGR1jCxUxcPCFya5JZ7yHk2MDrS7t4wXtCiu9SisJRTJnf0tU/2fO6Y9Z YtOt9N8qJ819tl6SyWfM+YCjdhbwI4Dc/N9HdjzcE85JqaIq3huU0ZaW9Jbx0yuvHAXL TI5A== 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=AiU24T75B8aRmsOu/ClAWirZkIUsHhLnaSMdCIW0BR0=; b=MMH8Yqf67pu6GWdYUI3doD+xcM0BuRdkBKWLhIwytORiXMmpeBLQxk1XQp0BRSvy+f EK93gnczz2Qq6kZ533PWwvawnVrLimpkhmFBUKd3BwJvnQLiCrXLh1f19O0GAeImnLLy 25RuOfLWP9n2hjse8rpgof989wzwgWSprlgV6qIhGrNNUuX6GBQ/jL+4a2R+lWCiHQep KtvMhw7RfyvMselSWWE4dNFExDGJ2p8N0P+Qrt/IR3xiGbx9qF/34IRKD7auoAOfdxuQ Qck51crvwQTALPH5h3r+XZf5usgaXQ7jr4RHV5bFocua2nRX6xs02m9tpnDrMQ7Znlgv 51Gg== 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 h13si2201364otn.112.2020.03.11.23.32.34; Wed, 11 Mar 2020 23:32:47 -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; 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 S2387889AbgCLGao (ORCPT + 99 others); Thu, 12 Mar 2020 02:30:44 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:46912 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387784AbgCLGao (ORCPT ); Thu, 12 Mar 2020 02:30:44 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 48A521524AFDBEDCB9A7; Thu, 12 Mar 2020 14:30:37 +0800 (CST) Received: from [127.0.0.1] (10.173.222.27) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Thu, 12 Mar 2020 14:30:30 +0800 Subject: Re: [PATCH v5 01/23] 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: <20200304203330.4967-1-maz@kernel.org> <20200304203330.4967-2-maz@kernel.org> From: Zenghui Yu Message-ID: <63f6530a-9369-31e6-88d0-5337173495b9@huawei.com> Date: Thu, 12 Mar 2020 14:30:28 +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: <20200304203330.4967-2-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/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? Thanks, Zenghui