Received: by 10.223.164.202 with SMTP id h10csp1248066wrb; Fri, 10 Nov 2017 00:42:06 -0800 (PST) X-Google-Smtp-Source: ABhQp+SA+c8127jmmqYSl2AsD5W3ci3eA8Xx+I44a7+BmUerR6LfcWpilCtgU/DMiQsl/WeKkkdv X-Received: by 10.84.236.7 with SMTP id q7mr3340802plk.87.1510303326239; Fri, 10 Nov 2017 00:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510303326; cv=none; d=google.com; s=arc-20160816; b=kA+mfUIMnN2jaUotqSMcgcSw7QBubUNcZu8y8apIkbqoLnfO/CPS/sckDW+6Loj7PT TDlD/NMxhUVfUSEiN0NigTPYkS8BrXp5FwvNo0Cgu1ygDqfxFRqAYlqcBkK+NvLlmE+0 4hZdLlLq6EQ4pv7EkopPvP7JGLfYLRydwnOmi326eJVEkHWK4hwFtnBDBPrJv4S45pO0 5LOPpafjs+6OT23FB6n6E+Gwg5QiRgB7MDyip4MBnHX7q2Y51cWuroJ8KvrLQaemyrJg IbqoHVxpQIfUVUoUtdn9BgHrBFOzKxea2CWRXTGaH/O9hCrAPljwjFX71odMO0/bOeik jfWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=KSsPfBajAxdf18PVf0q1w1vzhujzDs8vvFAci683Z30=; b=fSZM9cDmxAnV8uaaDMHqn6CBo6xjKLZJ1Xi7wepz2mfZNpDmdlRbvSUhFyMAiIwffO 9nJXGOEWdJ4N0XW4nkQ+hv/7dJBi7pgc/A3isCv506h9cBV5AqjaXIIYGCLLgzhVy8oZ 12OUv1qeocLADaHUfy+Fd5kIAO4SX+tnSRgv17MSaDL2SVqULv5yOZI5ji3VXEfy/N32 hslBxhLqVgOI1ZvSK8jLbbDByoXBCcqP39nsC6DiTadjdpOhwFCM3yOiNJi3/N4lEX93 OxuOAc08ANZ0sYDZXkZrN1eGtoET2Uq38mMunQ02kmiCAzS7hpmRRhLvg9ie3chuh0x0 r8OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YrTOigHo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t64si7984921pgc.697.2017.11.10.00.41.54; Fri, 10 Nov 2017 00:42:06 -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; dkim=pass header.i=@linaro.org header.s=google header.b=YrTOigHo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751485AbdKJIlO (ORCPT + 82 others); Fri, 10 Nov 2017 03:41:14 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38086 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbdKJIlM (ORCPT ); Fri, 10 Nov 2017 03:41:12 -0500 Received: by mail-wm0-f45.google.com with SMTP id p75so1086206wmg.3 for ; Fri, 10 Nov 2017 00:41:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KSsPfBajAxdf18PVf0q1w1vzhujzDs8vvFAci683Z30=; b=YrTOigHoOQWY7I1y+LaV5omrlyNEH4DZodh+fyFqr24anLLKf2bqJERKwBoinfbDHZ lUiCPNplUrd7EBIYSR1khWoLFKJxV5hkM4hb3utqzz9vBZEee1UQElBhewIWV2/NivUf HsJ6T6s98q/qAtFUI/a1cDbBg7y5/kS3o70BA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KSsPfBajAxdf18PVf0q1w1vzhujzDs8vvFAci683Z30=; b=ujoByg+hYRW8eXikQn0V916IntKkNoWrWDcI0MBpFuMQzXKE2lzNL4/4D7O9KzDXPu jdqKLhZPqhV9dce30YwxkmQOwYrlbBx8tD7CrZzexJAlSG7nOPOg1QRyXaZXPNG0pxJi Fy/x3SQ/7nv1mG7girx243e6hxnMrNXso/TVThwPImkMhpCs0nBWm/cWviAbA5930llE otHyWGW7X/vp4G4fiqtEbv2TsI0cFpTLb4OXWCe04NKHVwwaz+793vXpyhvldOqEwR1O OJmPWLp1cVv+pvSXwSs/6SIkZkzqhVO/Tz3Rscn1APP+ac6NYyUze41/JuSN5ZToDNAI MLUA== X-Gm-Message-State: AJaThX5o3W4A87hwFzMWVWyH55/KoptzFJMqaauah3R+RKr/0l0g9oaN 276LOkICqg7Ktd4qWuXxTzpI+g== X-Received: by 10.28.229.212 with SMTP id c203mr572440wmh.57.1510303271365; Fri, 10 Nov 2017 00:41:11 -0800 (PST) Received: from localhost (xd93dd96b.cust.hiper.dk. [217.61.217.107]) by smtp.gmail.com with ESMTPSA id c3sm4143697wrd.44.2017.11.10.00.41.10 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 10 Nov 2017 00:41:10 -0800 (PST) Date: Fri, 10 Nov 2017 09:41:15 +0100 From: Christoffer Dall To: Auger Eric Cc: Marc Zyngier , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Andre Przywara , Shameerali Kolothum Thodi , Christoffer Dall , Shanker Donthineni Subject: Re: [PATCH v5 17/26] KVM: arm/arm64: GICv4: Handle INVALL applied to a vPE Message-ID: <20171110084115.GJ14144@cbox> References: <20171027142855.21584-1-marc.zyngier@arm.com> <20171027142855.21584-18-marc.zyngier@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 07, 2017 at 10:23:25PM +0100, Auger Eric wrote: > Hi Marc, > > On 27/10/2017 16:28, Marc Zyngier wrote: > > Since when updating the properties one LPI at a time, there is no > Since we update the properties one LPI at a time, ... ? > > need to perform an INV each time we read one. Instead, we rely > > on the final VINVALL that gets sent to the ITS to do the work. > The commit message is not crystal clear for me. > > I understand in case of vgic_its_cmd_handle_invall you want to avoid > doing an invalidation for each physical irq but rather do an > its_invall_vpe at the end. So you add a new @needs_inv arg to > update_lpi_config to tell whether the invalidation should be done or not. I've reworded it to: There is no need to perform an INV for each interrupt when updating multiple interrupts. Instead, we can rely on the final VINVALL that gets sent to the ITS to do the work for all of them. Shout quickly if you have any objections. Thanks, -Christoffer From 1583464435557344833@xxx Wed Nov 08 02:49:23 +0000 2017 X-GM-THRID: 1582421421300807022 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread