[PATCH 8/9] KVM: arm/arm64: vgic: Don't check vgic_initialized in flush_hwstate

Marc Zyngier marc.zyngier at arm.com
Tue Mar 21 05:08:15 PDT 2017


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.

> 
> Signed-off-by: Christoffer Dall <cdall at linaro.org>

Acked-by: Marc Zyngier <marc.zyngier at arm.com>

	M.
-- 
Jazz is not dead. It just smells funny...



More information about the linux-arm-kernel mailing list