[v3,0/4] hyper-v: Introduce TSC page for root partition

Message ID 166749827889.218190.12775118554387271641.stgit@skinsburskii-cloud-desktop.internal.cloudapp.net
Headers
Series hyper-v: Introduce TSC page for root partition |

Message

Stanislav Kinsburskii Nov. 3, 2022, 5:58 p.m. UTC
  This series does some cleanup and precursor changes to the hyper-v clock
source and introduces support for TSC page based clock in root partition.

Hyper-V root partition requires kernel to map the page, specified by the
hypervisor (instead of provide the PFN to the hypervisor like it's done in
guest partition).

v3:
1. Rebased on top of the fix to support arbitrary TSC page size by Anirudh
2. Fixed TSC physical page when remapping in root partition.

v2:
1. Addressed all the comments to the commit messages.
2. TSC page in root partition is now remapped based on size of the tsc_pg
variable.

The following series implements...

---

Stanislav Kinsburskiy (4):
      drivers/clocksource/hyper-v: Introduce a pointer to TSC page
      drivers/clocksource/hyper-v: Introduce TSC PFN getter
      drivers/clocksource/hyper-v: Use TSC PFN getter to map vvar page
      drivers/clocksource/hyper-v: Add TSC page support for root partition


 arch/x86/entry/vdso/vma.c          |    7 ++---
 arch/x86/hyperv/hv_init.c          |    2 +
 drivers/clocksource/hyperv_timer.c |   55 +++++++++++++++++++++++++++---------
 include/clocksource/hyperv_timer.h |    7 +++++
 4 files changed, 53 insertions(+), 18 deletions(-)
  

Comments

Wei Liu Nov. 14, 2022, 1:54 p.m. UTC | #1
On Thu, Nov 03, 2022 at 05:58:43PM +0000, Stanislav Kinsburskii wrote:
> 
> Stanislav Kinsburskiy (4):
>       drivers/clocksource/hyper-v: Introduce a pointer to TSC page
>       drivers/clocksource/hyper-v: Introduce TSC PFN getter
>       drivers/clocksource/hyper-v: Use TSC PFN getter to map vvar page
>       drivers/clocksource/hyper-v: Add TSC page support for root partition

Applied to hyeprv-next. Thanks.
  
Daniel Lezcano Dec. 2, 2022, 12:55 p.m. UTC | #2
On 14/11/2022 14:54, Wei Liu wrote:
> On Thu, Nov 03, 2022 at 05:58:43PM +0000, Stanislav Kinsburskii wrote:
>>
>> Stanislav Kinsburskiy (4):
>>        drivers/clocksource/hyper-v: Introduce a pointer to TSC page
>>        drivers/clocksource/hyper-v: Introduce TSC PFN getter
>>        drivers/clocksource/hyper-v: Use TSC PFN getter to map vvar page
>>        drivers/clocksource/hyper-v: Add TSC page support for root partition
> 
> Applied to hyeprv-next. Thanks.

The series should have go through the clocksource/timer tree or at least 
should have specified the targeted tree for an Acked-by from the 
clocksource maintainers.

In the future, please follow the process

That said,

Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
  
Stanislav Kinsburskii Dec. 2, 2022, 5:10 p.m. UTC | #3
On Fri, Dec 02, 2022 at 01:55:35PM +0100, Daniel Lezcano wrote:
> On 14/11/2022 14:54, Wei Liu wrote:
> > On Thu, Nov 03, 2022 at 05:58:43PM +0000, Stanislav Kinsburskii wrote:
> > > 
> > > Stanislav Kinsburskiy (4):
> > >        drivers/clocksource/hyper-v: Introduce a pointer to TSC page
> > >        drivers/clocksource/hyper-v: Introduce TSC PFN getter
> > >        drivers/clocksource/hyper-v: Use TSC PFN getter to map vvar page
> > >        drivers/clocksource/hyper-v: Add TSC page support for root partition
> > 
> > Applied to hyeprv-next. Thanks.
> 
> The series should have go through the clocksource/timer tree or at least
> should have specified the targeted tree for an Acked-by from the clocksource
> maintainers.
> 
> In the future, please follow the process
> 

I will.
Thank you for your feedback and aknowledgement, Daniel.

> That said,
> 
> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> 
> -- 
> <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
> 
> Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
> <http://twitter.com/#!/linaroorg> Twitter |
> <http://www.linaro.org/linaro-blog/> Blog
  
Wei Liu Dec. 2, 2022, 6:15 p.m. UTC | #4
On Fri, Dec 02, 2022 at 01:55:35PM +0100, Daniel Lezcano wrote:
> On 14/11/2022 14:54, Wei Liu wrote:
> > On Thu, Nov 03, 2022 at 05:58:43PM +0000, Stanislav Kinsburskii wrote:
> > > 
> > > Stanislav Kinsburskiy (4):
> > >        drivers/clocksource/hyper-v: Introduce a pointer to TSC page
> > >        drivers/clocksource/hyper-v: Introduce TSC PFN getter
> > >        drivers/clocksource/hyper-v: Use TSC PFN getter to map vvar page
> > >        drivers/clocksource/hyper-v: Add TSC page support for root partition
> > 
> > Applied to hyeprv-next. Thanks.
> 
> The series should have go through the clocksource/timer tree or at least
> should have specified the targeted tree for an Acked-by from the clocksource
> maintainers.
> 
> In the future, please follow the process

Sure thing.

> 
> That said,
> 
> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>

Thank you very much!

Wei.