[PATCH v2 2/2] hyper-v: read TSC frequency from a synthetic MSR

2017-06-22 Thread Vitaly Kuznetsov
It was found that SMI_TRESHOLD of 5 is not enough for Hyper-V guests in nested environment and falling back to counting jiffies is not an option for Gen2 guests as they don't have PIT. As Hyper-V provides TSC frequency in a synthetic MSR we can just use this information instead of doing a

[PATCH v2 2/2] hyper-v: read TSC frequency from a synthetic MSR

2017-06-22 Thread Vitaly Kuznetsov
It was found that SMI_TRESHOLD of 5 is not enough for Hyper-V guests in nested environment and falling back to counting jiffies is not an option for Gen2 guests as they don't have PIT. As Hyper-V provides TSC frequency in a synthetic MSR we can just use this information instead of doing a