diff options
author | Nikolay Borisov <nborisov@suse.com> | 2022-07-29 13:44:34 +0200 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-07-29 13:44:34 +0200 |
commit | fe283e5fa1edc59f37265c91dc79bf119a5ccc79 (patch) | |
tree | def954797f752f38b73801d11963b807aa11a282 /arch/riscv/kvm/vcpu_exit.c | |
parent | RISC-V: KVM: Make kvm_riscv_guest_timer_init a void function (diff) | |
download | linux-fe283e5fa1edc59f37265c91dc79bf119a5ccc79.tar.xz linux-fe283e5fa1edc59f37265c91dc79bf119a5ccc79.zip |
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: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'arch/riscv/kvm/vcpu_exit.c')
0 files changed, 0 insertions, 0 deletions