• Z
    KVM: x86: TSC catchup mode · c285545f
    Zachary Amsden 提交于
    Negate the effects of AN TYM spell while kvm thread is preempted by tracking
    conversion factor to the highest TSC rate and catching the TSC up when it has
    fallen behind the kernel view of time.  Note that once triggered, we don't
    turn off catchup mode.
    
    A slightly more clever version of this is possible, which only does catchup
    when TSC rate drops, and which specifically targets only CPUs with broken
    TSC, but since these all are considered unstable_tsc(), this patch covers
    all necessary cases.
    Signed-off-by: NZachary Amsden <zamsden@redhat.com>
    Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
    c285545f
kvm_host.h 22.2 KB