]> 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)
commit95cc8b13c8f5872757097999b156ea604b7871ba
tree9ee81470cf8c089fb3fb1e712cf332cb667c808a
parent3c643835ccb33c3614f040a2f36d306161e242b2
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