]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/vdso: Add VCLOCK_HVCLOCK vDSO clock read method
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 3 Mar 2017 13:21:42 +0000 (14:21 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 11 Mar 2017 13:47:28 +0000 (14:47 +0100)
commit90b20432aeb850ef84086a72893cd9411479d896
tree507f4ef6a4098f8f8919f625d57bc464170cefe7
parent0733379b512ce36ba0b10942f9597b74f579f063
x86/vdso: Add VCLOCK_HVCLOCK vDSO clock read method

Hyper-V TSC page clocksource is suitable for vDSO, however, the protocol
defined by the hypervisor is different from VCLOCK_PVCLOCK. Implement the
required support by adding hvclock_page VVAR.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: devel@linuxdriverproject.org
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: virtualization@lists.linux-foundation.org
Link: http://lkml.kernel.org/r/20170303132142.25595-4-vkuznets@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/entry/vdso/vclock_gettime.c
arch/x86/entry/vdso/vdso-layout.lds.S
arch/x86/entry/vdso/vdso2c.c
arch/x86/entry/vdso/vma.c
arch/x86/hyperv/hv_init.c
arch/x86/include/asm/clocksource.h
arch/x86/include/asm/vdso.h