• A
    KVM: VMX: Ensure vcpu time stamp counter is monotonous · 7700270e
    Avi Kivity 提交于
    If the time stamp counter goes backwards, a guest delay loop can become
    infinite.  This can happen if a vcpu is migrated to another cpu, where
    the counter has a lower value than the first cpu.
    
    Since we're doing an IPI to the first cpu anyway, we can use that to pick
    up the old tsc, and use that to calculate the adjustment we need to make
    to the tsc offset.
    Signed-off-by: NAvi Kivity <avi@qumranet.com>
    7700270e
vmx.c 57.9 KB