]> www.infradead.org Git - users/dwmw2/linux.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>
Tue, 12 Feb 2019 12:12:45 +0000 (13:12 +0100)
commit0ec8414008b009c8040473dd7d3dec9301aedd2f
treec71468b9a840a30da8138499df799b63ab2dc116
parent4d3f8e4ff75e3ab0e8b78fb28ee421207d46de99
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