summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJosh Cartwright <joshc@ni.com>2016-02-11 20:54:01 +0300
committerMinda Chen <minda.chen@starfivetech.com>2023-11-06 14:24:52 +0300
commitb77bc48a663da7cb5501e60c33914e2bacd939f3 (patch)
tree7b38d618c659481b845067c28da61ca3659bf355 /Documentation
parentf39aa40a92b3cc6749463638c68503ff04bf8022 (diff)
downloadlinux-b77bc48a663da7cb5501e60c33914e2bacd939f3.tar.xz
KVM: arm/arm64: downgrade preempt_disable()d region to migrate_disable()
kvm_arch_vcpu_ioctl_run() disables the use of preemption when updating the vgic and timer states to prevent the calling task from migrating to another CPU. It does so to prevent the task from writing to the incorrect per-CPU GIC distributor registers. On -rt kernels, it's possible to maintain the same guarantee with the use of migrate_{disable,enable}(), with the added benefit that the migrate-disabled region is preemptible. Update kvm_arch_vcpu_ioctl_run() to do so. Cc: Christoffer Dall <christoffer.dall@linaro.org> Reported-by: Manish Jaggi <Manish.Jaggi@caviumnetworks.com> Signed-off-by: Josh Cartwright <joshc@ni.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions