• Wanpeng Li's avatar
    KVM: X86: Implement PV sched yield hypercall · 71506297
    Wanpeng Li authored
    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: default avatarWanpeng Li <wanpengli@tencent.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    71506297
x86.c 258 KB