KVM: vmx: speed up TPR below threshold vmexits
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 18 Dec 2016 13:02:21 +0000 (14:02 +0100)
committerRadim Krčmář <rkrcmar@redhat.com>
Mon, 9 Jan 2017 13:48:00 +0000 (14:48 +0100)
commiteb90f3417a0cc4880e979ccc84e41890d410ea5b
treee2fb1a6d70e064e30706848ae6a2899f21e8cc2a
parent0f1e261ead16ce09169bf2d223d4c8803576f85e
KVM: vmx: speed up TPR below threshold vmexits

Since we're already in VCPU context, all we have to do here is recompute
the PPR value.  That will in turn generate a KVM_REQ_EVENT if necessary.

Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/vmx.c