[PATCH AUTOSEL 4.14 60/67] KVM: arm/arm64: Fix vgic init race

2018-09-06 Thread Sasha Levin
From: Christoffer Dall [ Upstream commit 1d47191de7e15900f8fbfe7cccd7c6e1c2d7c31a ] The vgic_init function can race with kvm_arch_vcpu_create() which does not hold kvm_lock() and we therefore have no synchronization primitives to ensure we're doing the right thing. As the user is trying to

[PATCH AUTOSEL 4.14 60/67] KVM: arm/arm64: Fix vgic init race

2018-09-06 Thread Sasha Levin
From: Christoffer Dall [ Upstream commit 1d47191de7e15900f8fbfe7cccd7c6e1c2d7c31a ] The vgic_init function can race with kvm_arch_vcpu_create() which does not hold kvm_lock() and we therefore have no synchronization primitives to ensure we're doing the right thing. As the user is trying to