summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-12-18 14:02:21 +0100
committerRadim Krčmář <rkrcmar@redhat.com>2017-01-09 14:48:00 +0100
commiteb90f3417a0cc4880e979ccc84e41890d410ea5b (patch)
treee2fb1a6d70e064e30706848ae6a2899f21e8cc2a /arch/x86/kvm/vmx.c
parent0f1e261ead16ce09169bf2d223d4c8803576f85e (diff)
downloadblackbird-op-linux-eb90f3417a0cc4880e979ccc84e41890d410ea5b.tar.gz
blackbird-op-linux-eb90f3417a0cc4880e979ccc84e41890d410ea5b.zip
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>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index d2fe3a51876c..94fda2010f5f 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -6152,7 +6152,7 @@ static int handle_wrmsr(struct kvm_vcpu *vcpu)
static int handle_tpr_below_threshold(struct kvm_vcpu *vcpu)
{
- kvm_make_request(KVM_REQ_EVENT, vcpu);
+ kvm_apic_update_ppr(vcpu);
return 1;
}
OpenPOWER on IntegriCloud