Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4045590ybg; Fri, 25 Oct 2019 12:32:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQSxj6Z/NPbQgoIcPnVRjVTZMIY9W1DHQm7HteAqiSFJjjdCiQSqXfgrrBgwk3MMJuixJ7 X-Received: by 2002:aa7:cd0d:: with SMTP id b13mr362543edw.146.1572031922735; Fri, 25 Oct 2019 12:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031922; cv=none; d=google.com; s=arc-20160816; b=XDWNIqG1b04ebQ56ykxLFkdjyAgqY/Bvj5bMtwBX48SrJsSJrDzbZhfdOvrbAO2z2s X3qHvegZqLWCAn1Akj4iNe8Cbw5sU3QOZfrSJQe0mrN7bmnrsJEgZmB/ZMVatt4p9Rn0 G4Fc7D7wf1CT1H2pRN0y2PiLr38lP+D+r+rLoJVH5XH5Vx2fmywKTRMZR0uppF4sqd5h xG7O3Efstj56HHCRYfE35P9CAvpvwhEjbmWwUAQC/UFrE0hkhd7MTbPPIPTtNSYuV2Xe 8McM/nzkEHNT/YhKYMidL4I8YDRCi4DpZ0x9Qk0xqUlWN3no6kH8DArHLGz+CsLsLwzm 4u9g== 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:cc:from:date:content-transfer-encoding:mime-version :subject:to; bh=XgcKILQoXl4zfWwbbal98lU0s6t/9cBQbRetDim1lZs=; b=h1PSJrzWHRKG4hiH103fC4Gg7jw8V2nBjexLTpdv9TO32+ttMAnwOLmM1NrhsdabzQ oJUq+IuOwSxOCz7bSnKKb5obD+B5Qtgv1P63ZnRU0NlZiIhE3it6uNDS/0NTO7SD2pmv nh2Kc/iAK3jT7npRsGIkXGgR3p3LsVRVeo5w66QIhOfRisX7ImjVSd55x48ebZ1Rwb/f FxlFdt7NGrmxf2kb/+zRkQL4mp+46E8FmlFWvcB5ZnZ3FMo3uNWBB1pcjYtH+DPjsl+K fGuTLl2OPzO6reVNJ+bm5uz/VyKs5Dfa5Mboa+5vZcNIxWAHcm553RvwxPBbvNJe3IRT IizA== 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; dmarc=fail (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 s2si1824163ejj.327.2019.10.25.12.31.39; Fri, 25 Oct 2019 12:32:02 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436625AbfJYIYq (ORCPT + 99 others); Fri, 25 Oct 2019 04:24:46 -0400 Received: from inca-roads.misterjones.org ([213.251.177.50]:55430 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406192AbfJYIYp (ORCPT ); Fri, 25 Oct 2019 04:24:45 -0400 Received: from www-data by cheepnis.misterjones.org with local (Exim 4.80) (envelope-from ) id 1iNutf-00012T-1B; Fri, 25 Oct 2019 10:24:35 +0200 To: Zenghui Yu Subject: Re: [PATCH v2] irqchip/gic-v3-its: Use the exact ITSList for VMOVP X-PHP-Originating-Script: 0:main.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 25 Oct 2019 09:24:34 +0100 From: Marc Zyngier Cc: , , , , , , LKML In-Reply-To: <1571802386-2680-1-git-send-email-yuzenghui@huawei.com> References: <1571802386-2680-1-git-send-email-yuzenghui@huawei.com> Message-ID: <0f99f6a4ea567f53d38fb3bc0e6f59e4@www.loen.fr> X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/0.7.2 X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To: yuzenghui@huawei.com, tglx@linutronix.de, jason@lakedaemon.net, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, wanghaibin.wang@huawei.com, jiayanlei@huawei.com, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.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 2019-10-23 04:46, Zenghui Yu wrote: > On a system without Single VMOVP support (say GITS_TYPER.VMOVP == 0), > we will map vPEs only on ITSs that will actually control interrupts > for the given VM. And when moving a vPE, the VMOVP command will be > issued only for those ITSs. > > But when issuing VMOVPs we seemed fail to present the exact ITSList > to ITSs who are actually included in the synchronization operation. > The its_list_map we're currently using includes all ITSs in the > system, > even though some of them don't have the corresponding vPE mapping at > all. > > Introduce get_its_list() to get the per-VM its_list_map, to indicate > which ITSs have vPE mappings for the given VM, and use this map as > the expected ITSList when building VMOVP. This is hopefully a > performance > gain not to do some synchronization with those unsuspecting ITSs. > And initialize the whole command descriptor to zero at beginning, > since > the seq_num and its_list should be RES0 when GITS_TYPER.VMOVP == 1. > > Signed-off-by: Zenghui Yu I've applied this as a fix for 5.4. In the future, please cc LKML on all IRQ-related patches (as documented in MAINTAINERS). M. -- Jazz is not dead. It just smells funny...