]> git.baikalelectronics.ru Git - kernel.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)
commit1eb0ab8a3c844db2dc8231876f6968038fd37fbf
treea979c7c79774045e6e28c0fa532abf5b54f103ca
parent5807b829df61f3326a352afcb6ebac84728d8e93
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