KVM: X86: Implement PV sched yield hypercall
authorWanpeng Li <wanpengli@tencent.com>
Tue, 11 Jun 2019 12:23:49 +0000 (20:23 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Jul 2019 16:56:04 +0000 (18:56 +0200)
commit715062970f3748fbbf55c1a8cb495051760a65c1
treea2443ef6acff1492eea3cd89caa7130f6130a88d
parentf85f6e7bc9682a6d8b342c010cd6aa58521fdeec
KVM: X86: Implement PV sched yield hypercall

The target vCPUs are in runnable state after vcpu_kick and suitable
as a yield target. This patch implements the sched yield hypercall.

17% performance increasement of ebizzy benchmark can be observed in an
over-subscribe environment. (w/ kvm-pv-tlb disabled, testing TLB flush
call-function IPI-many since call-function is not easy to be trigged
by userspace workload).

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c