From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoffer Dall Subject: Re: [PATCH 8/9] KVM: arm/arm64: vgic: Don't check vgic_initialized in flush_hwstate Date: Tue, 21 Mar 2017 13:30:51 +0100 Message-ID: <20170321123051.GF15920@cbox> References: <20170320105818.20481-1-cdall@linaro.org> <20170320105818.20481-9-cdall@linaro.org> <96b0efe2-d764-7b52-8335-0383a9357a1f@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Andre Przywara , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org To: Marc Zyngier Return-path: Content-Disposition: inline In-Reply-To: <96b0efe2-d764-7b52-8335-0383a9357a1f@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu List-Id: kvm.vger.kernel.org On Tue, Mar 21, 2017 at 12:08:15PM +0000, Marc Zyngier wrote: > On 20/03/17 10:58, Christoffer Dall wrote: > > Now when we do an early init of the static parts of the VGIC data > > structures, we can do things like checking if the AP lists are empty > > directly without having to explicitly check if the vgic is initialized > > and reduce a bit of work in our criticial path. > > critical > > > Note: list_empty is a single atomic read (uses READ_ONCE) and can > > therefore check if a list is empty or not without the need to take the > > spinlock protecting the list. > > This note might be better placed in patch #2. Agreed. > > > > > Signed-off-by: Christoffer Dall > > Acked-by: Marc Zyngier > Thanks, -Christoffer From mboxrd@z Thu Jan 1 00:00:00 1970 From: cdall@linaro.org (Christoffer Dall) Date: Tue, 21 Mar 2017 13:30:51 +0100 Subject: [PATCH 8/9] KVM: arm/arm64: vgic: Don't check vgic_initialized in flush_hwstate In-Reply-To: <96b0efe2-d764-7b52-8335-0383a9357a1f@arm.com> References: <20170320105818.20481-1-cdall@linaro.org> <20170320105818.20481-9-cdall@linaro.org> <96b0efe2-d764-7b52-8335-0383a9357a1f@arm.com> Message-ID: <20170321123051.GF15920@cbox> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Mar 21, 2017 at 12:08:15PM +0000, Marc Zyngier wrote: > On 20/03/17 10:58, Christoffer Dall wrote: > > Now when we do an early init of the static parts of the VGIC data > > structures, we can do things like checking if the AP lists are empty > > directly without having to explicitly check if the vgic is initialized > > and reduce a bit of work in our criticial path. > > critical > > > Note: list_empty is a single atomic read (uses READ_ONCE) and can > > therefore check if a list is empty or not without the need to take the > > spinlock protecting the list. > > This note might be better placed in patch #2. Agreed. > > > > > Signed-off-by: Christoffer Dall > > Acked-by: Marc Zyngier > Thanks, -Christoffer