RE: [PATCH 0/2] clocksource/Hyper-V: Add Hyper-V specific sched clock function

2019-08-21 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > Michael Kelley writes: > >> I talked to KY Srinivasan for any history about TSC page on 32-bit. He said >> there was no technical reason not to implement it, but our focus was always >> 64-bit Linux, so the 32-bit was much less important. Also, on 32-bit Linux, >>

RE: [PATCH 0/2] clocksource/Hyper-V: Add Hyper-V specific sched clock function

2019-08-21 Thread Vitaly Kuznetsov
Michael Kelley writes: > From: Vitaly Kuznetsov Sent: Tuesday, August 13, 2019 > 1:34 AM >> >> Michael Kelley writes: >> >> > From: Tianyu Lan Sent: Tuesday, July 30, 2019 >> > 6:41 AM >> >> >> >> On Mon, Jul 29, 2019 at 8:13 PM Vitaly Kuznetsov >> >> wrote: >> >> > >> >> > Peter

RE: [PATCH 0/2] clocksource/Hyper-V: Add Hyper-V specific sched clock function

2019-08-20 Thread Michael Kelley
From: Vitaly Kuznetsov Sent: Tuesday, August 13, 2019 1:34 AM > > Michael Kelley writes: > > > From: Tianyu Lan Sent: Tuesday, July 30, 2019 > > 6:41 AM > >> > >> On Mon, Jul 29, 2019 at 8:13 PM Vitaly Kuznetsov > >> wrote: > >> > > >> > Peter Zijlstra writes: > >> > > >> > > On Mon, Jul

RE: [PATCH 0/2] clocksource/Hyper-V: Add Hyper-V specific sched clock function

2019-08-13 Thread Vitaly Kuznetsov
Michael Kelley writes: > From: Tianyu Lan Sent: Tuesday, July 30, 2019 6:41 > AM >> >> On Mon, Jul 29, 2019 at 8:13 PM Vitaly Kuznetsov wrote: >> > >> > Peter Zijlstra writes: >> > >> > > On Mon, Jul 29, 2019 at 12:59:26PM +0200, Vitaly Kuznetsov wrote: >> > >> lantianyu1...@gmail.com

RE: [PATCH 0/2] clocksource/Hyper-V: Add Hyper-V specific sched clock function

2019-08-12 Thread Michael Kelley
From: Tianyu Lan Sent: Tuesday, July 30, 2019 6:41 AM > > On Mon, Jul 29, 2019 at 8:13 PM Vitaly Kuznetsov wrote: > > > > Peter Zijlstra writes: > > > > > On Mon, Jul 29, 2019 at 12:59:26PM +0200, Vitaly Kuznetsov wrote: > > >> lantianyu1...@gmail.com writes: > > >> > > >> > From: Tianyu Lan

Re: [PATCH 0/2] clocksource/Hyper-V: Add Hyper-V specific sched clock function

2019-07-30 Thread Tianyu Lan
Hi Vitaly & Peter: Thanks for your review. On Mon, Jul 29, 2019 at 8:13 PM Vitaly Kuznetsov wrote: > > Peter Zijlstra writes: > > > On Mon, Jul 29, 2019 at 12:59:26PM +0200, Vitaly Kuznetsov wrote: > >> lantianyu1...@gmail.com writes: > >> > >> > From: Tianyu Lan > >> > > >> > Hyper-V

Re: [PATCH 0/2] clocksource/Hyper-V: Add Hyper-V specific sched clock function

2019-07-29 Thread Vitaly Kuznetsov
Peter Zijlstra writes: > On Mon, Jul 29, 2019 at 12:59:26PM +0200, Vitaly Kuznetsov wrote: >> lantianyu1...@gmail.com writes: >> >> > From: Tianyu Lan >> > >> > Hyper-V guests use the default native_sched_clock() in >> > pv_ops.time.sched_clock >> > on x86. But native_sched_clock() directly

Re: [PATCH 0/2] clocksource/Hyper-V: Add Hyper-V specific sched clock function

2019-07-29 Thread Peter Zijlstra
On Mon, Jul 29, 2019 at 12:59:26PM +0200, Vitaly Kuznetsov wrote: > lantianyu1...@gmail.com writes: > > > From: Tianyu Lan > > > > Hyper-V guests use the default native_sched_clock() in > > pv_ops.time.sched_clock > > on x86. But native_sched_clock() directly uses the raw TSC value, which > >

Re: [PATCH 0/2] clocksource/Hyper-V: Add Hyper-V specific sched clock function

2019-07-29 Thread Vitaly Kuznetsov
lantianyu1...@gmail.com writes: > From: Tianyu Lan > > Hyper-V guests use the default native_sched_clock() in pv_ops.time.sched_clock > on x86. But native_sched_clock() directly uses the raw TSC value, which > can be discontinuous in a Hyper-V VM. Add the generic hv_setup_sched_clock() > to

[PATCH 0/2] clocksource/Hyper-V: Add Hyper-V specific sched clock function

2019-07-29 Thread lantianyu1986
From: Tianyu Lan Hyper-V guests use the default native_sched_clock() in pv_ops.time.sched_clock on x86. But native_sched_clock() directly uses the raw TSC value, which can be discontinuous in a Hyper-V VM. Add the generic hv_setup_sched_clock() to set the sched clock function appropriately.