OSDN Git Service

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)
commit359a6c3ddc5184122989d5152a4b975c1c262d33
tree9ee81470cf8c089fb3fb1e712cf332cb667c808a
parentd92935979adba274b1099e67b7f713f6d8413121
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