Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1167326ybh; Thu, 12 Mar 2020 18:43:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv2as3o4Q+ejCFuxpHmK7EVNknLTgYD63wfUzthmyNYS6mAfp0XF+1l7jv38NDrFLkuC879 X-Received: by 2002:aca:1a17:: with SMTP id a23mr4849534oia.84.1584063781775; Thu, 12 Mar 2020 18:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584063781; cv=none; d=google.com; s=arc-20160816; b=SrYMl+swARA3tEhI4uXRHHh5ReaJOdlwjpNWVrQSAF5zQukjPQ8aaZYyJRv0Bkc7pD Us6xeUfoC4E/mRkyQdDdtXNLDQ2kpsirv8l0cbQHE196ruBHjmhsfbuHS/KeJ6szv+gF l6bxRFMV81eX+/F63RKxJB7WZlHYCar/5KClWhfXfAPeUjg8CoP6ZV8gyTwzz9Yk46iW sywL2wNvpUry4UXNADjDIhosqiklk/4vOqlHysJBGT/c1P7c89PTlymScV1dfdIoYett XUgXqGAX9QFfLuR9NTj8/zCjIvSQPu74TIhLSIJl7da5a4kP+lt1t7CkVEvA6bZFxAMe ysow== 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=tbFDM7+Zr7upUVSgUmq7uJ1G/V/Sm9WjfZKfxfezIOQ=; b=M2KDzQNp3aW6nrajS6rWc8xRjTnuo26jHpe76MY2Jf+DAWQ5CvMlCOdnXPCm4j+t9A Ok7mCrh4R81v5LNXxFq3Okft5iejogATKNeda32tgnVb/BwxdM0rmJvTOiH2cNjE3HE5 Dok1Th0qmIvnSn+8rr5Q78WqQgrqeBsMo5prUMB4Ec+YMt61cLaDnHPtG+S08SGZGWjr GYnXpKbUQZj9HM4LAqeh+E5GcK7IUnThw0P/lWzWUmLFBDKV7rRT4fhHBMi3ZOMa4JYK AB+7z7JUf3L9Wr4R6P2iuz3+OtB3AuJjUcv4LUjz1Kb4kQCkSO5VX4FLFwO3nAKWJdm/ IJPQ== 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 c21si3626314oto.137.2020.03.12.18.42.36; Thu, 12 Mar 2020 18:43:01 -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 S1726659AbgCMBjV (ORCPT + 99 others); Thu, 12 Mar 2020 21:39:21 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:11640 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726546AbgCMBjV (ORCPT ); Thu, 12 Mar 2020 21:39:21 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id F35E4EF00CE69FBB0358; Fri, 13 Mar 2020 09:39:17 +0800 (CST) Received: from [127.0.0.1] (10.173.222.27) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Fri, 13 Mar 2020 09:39:10 +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> <63f6530a-9369-31e6-88d0-5337173495b9@huawei.com> <51b2c74fdbcca049cc01be6d78c7c693@kernel.org> <1bff1835ba7d6e22edb836d38cf16a14@kernel.org> From: Zenghui Yu Message-ID: <3e20f3c3-0312-bd29-dcfc-2afee764ef19@huawei.com> Date: Fri, 13 Mar 2020 09:39:08 +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: <1bff1835ba7d6e22edb836d38cf16a14@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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/12 20:05, Marc Zyngier wrote: > 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). I see. Thanks for the confirmation! Zenghui