Skip to content
Commit fe283e5f authored by Nikolay Borisov's avatar Nikolay Borisov Committed by Anup Patel
Browse files

RISC-V: KVM: move preempt_disable() call in kvm_arch_vcpu_ioctl_run



local_irq_disable provides stronger guarantees than preempt_disable so
calling the latter is redundant when interrupts are disabled. Instead,
explicitly disable preemption right before interrupts are enabled/disabled
to ensure that the time accounted in guest_timing_exit_irqoff
includes time taken by the guest or interrupts.

Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: default avatarAnup Patel <anup@brainfault.org>
parent cca986fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment