]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: do not start the preemption timer hrtimer unnecessarily
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Jan 2019 18:14:46 +0000 (19:14 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Feb 2019 21:48:29 +0000 (22:48 +0100)
commit9d302375545e4aa7ed24bb35eb02f700d45149d2
tree9ee81470cf8c089fb3fb1e712cf332cb667c808a
parent03dbd52844874afa5a022faca557a519ba96bcf4
KVM: nVMX: do not start the preemption timer hrtimer unnecessarily

The preemption timer can be started even if there is a vmentry
failure during or after loading guest state.  That is pointless,
move the call after all conditions have been checked.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c