Re: [PATCH v2 2/7] x86/hyper-v: add a function to read both TSC and TSC page value simulateneously

2018-01-15 Thread Vitaly Kuznetsov
Thomas Gleixner writes: > On Wed, 13 Dec 2017, Vitaly Kuznetsov wrote: > >> This is going to be used from KVM code where we need to get both >> TSC and TSC page value. >> >> When Hyper-V code is compiled out just return rdtsc(), this will allow us >> to avoid ugly ifdefs in

Re: [PATCH v2 2/7] x86/hyper-v: add a function to read both TSC and TSC page value simulateneously

2018-01-14 Thread Thomas Gleixner
On Wed, 13 Dec 2017, Vitaly Kuznetsov wrote: > This is going to be used from KVM code where we need to get both > TSC and TSC page value. > > When Hyper-V code is compiled out just return rdtsc(), this will allow us > to avoid ugly ifdefs in non-Hyper-V code. That's not what the patch

[PATCH v2 2/7] x86/hyper-v: add a function to read both TSC and TSC page value simulateneously

2017-12-13 Thread Vitaly Kuznetsov
This is going to be used from KVM code where we need to get both TSC and TSC page value. When Hyper-V code is compiled out just return rdtsc(), this will allow us to avoid ugly ifdefs in non-Hyper-V code. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/hv_init.c