Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2203864rdf; Mon, 6 Nov 2023 07:33:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmlcvRA/cG3i0dh2RWE6KitxvgOu/eUYFAQmimx5dqrsdPA2WDXee+cZ1YSdKE9nens+Bv X-Received: by 2002:a05:6e02:1aa7:b0:359:523d:f1fb with SMTP id l7-20020a056e021aa700b00359523df1fbmr40279ilv.5.1699284803606; Mon, 06 Nov 2023 07:33:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699284803; cv=none; d=google.com; s=arc-20160816; b=UCld9QFW6XC8y5DOYXQ810csZxHYU9m/GKkqKOoPH72f1/CIfs99AiqRXHYAkWbGBG YhN+Df3hpVibY7upOCazBoi92iqTFLPKeOFC67FKU5L5yUrx0N+O8HVPmu7mSA8NPFAb qKlCQtd2JvlVXjVsYS5VrECjBBM2dK2k0L7A6eSZLN67l3zpGg6sn0mwqForEHVcwShx DN/K9Tnu69nK96irooB3wnGNCiNTEP95/Y+nnGhDGL0ya3qnwwndi+6HT30XGY1/A27l +upuFfzttaYA4rMywvaTH470ls8pNaFuSvZCqY9SXxc04pLcdVnePTDtMclxgtI7s3rO rYvw== 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:dkim-signature; bh=s3feQF/oD+W0E97neYBpWPST4zQdirLEIb5hawd9Hv0=; fh=+mTbk0nfOh8zeOUqlpLmaurHLlWtoOoJoNIC3cYgytU=; b=HNtJplSqIqGg4eXnDkm3w4AoOmODZGKpljuZlm8jbE7CP4VX7isoYkOAVINx1DEUlQ gu2deZ0mpoSuHuM4LgEv3GK0w1xWKcbn0dimtijlmn35Tv3qkJkKiRsvVq3p/9rjWVq+ EYAnpcWX14O0Z1fZbFTn1OpraspKULkA7qCWQkego2D0Q6gPAp3hePTU3W1Sy9KRR+2T r6iS1NeKxKl7rokt+3bfB1d+Ywsa8J2VleunFr00kUNIsjSkf/yU4A+SFgeN3RL2q3/R PqChcs2BH4VYVP26x2ycgSztXChV+Rwjm18WfidKsv2facvF2esIIAVlpWDkNJfGj5Rv U3YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QSe+LhMh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bj25-20020a056a02019900b005b966a6960csi9174554pgb.786.2023.11.06.07.33.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 07:33:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QSe+LhMh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3E05280267FF; Mon, 6 Nov 2023 07:33:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231929AbjKFPdV (ORCPT + 99 others); Mon, 6 Nov 2023 10:33:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231277AbjKFPdU (ORCPT ); Mon, 6 Nov 2023 10:33:20 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01ABCB8 for ; Mon, 6 Nov 2023 07:33:18 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95FE8C433C7; Mon, 6 Nov 2023 15:33:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699284797; bh=xV7m5Axz6doc1+4iuhW6bs3XG18ZDG1RNL3LtMPk/bA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QSe+LhMhvFLDhezunvYjS91vcxuGdkNV3dRzxEHBsN2hfo6RPH/Pt2YTxiRrRmcAD OvgnVk5QNtmf4artyOZ1+svaV6jGvSQ6y6y/mlMVdK1eZ/b3E9RjHeYg6VOHt/QRES 4qxEJlQ9pZnV6Bymj2bqCcqmMjYc9+47Z0Q7Bm5Xbj+pa39mwdQKMiI3MCY3N//fk2 2AADPaFJc9/oKRhknESCqAhP7DjE7Jxn8eN/6n202w/G9Ioz/GqWmejgS4EMhpmbsJ bWJIxJ4lWSKBEs35tUSSjf48SDSbjVWyPJQozNEgzLGwXZFinq+fI8tQ1vHWUbliDV NbIa5ZTv5f+/A== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1r01bG-00Ao8C-Rb; Mon, 06 Nov 2023 15:33:15 +0000 Date: Mon, 06 Nov 2023 15:33:14 +0000 Message-ID: <86edh228xx.wl-maz@kernel.org> From: Marc Zyngier To: Kunkun Jiang Cc: Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Gavin Shan , Jean-Philippe Brucker , "open list:IRQCHIP DRIVERS" , , , Subject: Re: [RFC PATCH] KVM: arm/arm64: GICv4: Support shared VLPI In-Reply-To: <1fb8353e-e9c4-2570-c2ca-ec537c18ac4d@huawei.com> References: <20231102143507.840-1-jiangkunkun@huawei.com> <87msvt6cc7.wl-maz@kernel.org> <1fb8353e-e9c4-2570-c2ca-ec537c18ac4d@huawei.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/29.1 (aarch64-unknown-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: jiangkunkun@huawei.com, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, gshan@redhat.com, jean-philippe@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, wanghaibin.wang@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 06 Nov 2023 07:33:22 -0800 (PST) On Mon, 06 Nov 2023 14:59:01 +0000, Kunkun Jiang wrote: > > The virtio-pci driver write entry1-6 > massage.data in the msix-table and trap to QEMU for processing. The > massage.data is as follow: > > entry-0 0 > > entry-1 1 > > entry-2 1 > > entry-3 1 > > entry-4 1 > > entry-5 1 > > entry-6 1 Urgh... is vp_modern_queue_vector() used in your configuration? This is ... terrible. I wonder if PCIe actually allows this sort of thing. In any case, this sort of behaviour breaks so many thing in KVM's implementation that I'd recommend you disable GICv4 until we have a good solution for that. M. -- Without deviation from the norm, progress is not possible.