]> git.baikalelectronics.ru Git - kernel.git/commit
x86/pvclock: add setter for pvclock_pvti_cpu0_va
authorJoao Martins <joao.m.martins@oracle.com>
Wed, 8 Nov 2017 17:19:55 +0000 (17:19 +0000)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 8 Nov 2017 21:33:14 +0000 (16:33 -0500)
commita740bf86f59dc259de4ab7142145dbc330c1e8fa
treeb002987d2330af60099f058fbf74c9ba13ec8c6f
parent65e432e72acfca66abbc615b5c8164eb99be85d9
x86/pvclock: add setter for pvclock_pvti_cpu0_va

Right now there is only a pvclock_pvti_cpu0_va() which is defined
on kvmclock since:

commit d7cc1a8bb568
("x86/vdso: Get pvclock data from the vvar VMA instead of the fixmap")

The only user of this interface so far is kvm. This commit adds a
setter function for the pvti page and moves pvclock_pvti_cpu0_va
to pvclock, which is a more generic place to have it; and would
allow other PV clocksources to use it, such as Xen.

While moving pvclock_pvti_cpu0_va into pvclock, rename also this
function to pvclock_get_pvti_cpu0_va (including its call sites)
to be symmetric with the setter (pvclock_set_pvti_cpu0_va).

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Acked-by: Andy Lutomirski <luto@kernel.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/entry/vdso/vma.c
arch/x86/include/asm/pvclock.h
arch/x86/kernel/kvmclock.c
arch/x86/kernel/pvclock.c
drivers/ptp/ptp_kvm.c