]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm/arm64: KVM: Move vgic handling to a non-preemptible section
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 8 Jun 2015 14:00:28 +0000 (15:00 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 12 Aug 2015 10:28:23 +0000 (11:28 +0100)
commitabdf58438356c7baf34bdd98084b094ca3a6a23f
treea979c7c79774045e6e28c0fa532abf5b54f103ca
parent9a99d050705318d1cb27979e1c810464347db9db
arm/arm64: KVM: Move vgic handling to a non-preemptible section

As we're about to introduce some serious GIC-poking to the vgic code,
it is important to make sure that we're going to poke the part of
the GIC that belongs to the CPU we're about to run on (otherwise,
we'd end up with some unexpected interrupts firing)...

Introducing a non-preemptible section in kvm_arch_vcpu_ioctl_run
prevents the problem from occuring.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/arm.c