]> git.baikalelectronics.ru Git - kernel.git/commit
add support for Hyper-V reference time counter
authorVadim Rozenfeld <vrozenfe@redhat.com>
Thu, 16 Jan 2014 09:18:37 +0000 (20:18 +1100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 Jan 2014 09:22:08 +0000 (10:22 +0100)
commit3ecb350163e75b5ad30d7a16b61488b84375009d
tree8bc58542fbd9680ee70ea83174ea092aa1baf8ad
parentd6218bd3712e50a78e482c2226cf0d4058a86b71
add support for Hyper-V reference time counter

Signed-off: Peter Lieven <pl@kamp.de>
Signed-off: Gleb Natapov
Signed-off: Vadim Rozenfeld <vrozenfe@redhat.com>

After some consideration I decided to submit only Hyper-V reference
counters support this time. I will submit iTSC support as a separate
patch as soon as it is ready.

v1 -> v2
1. mark TSC page dirty as suggested by
    Eric Northup <digitaleric@google.com> and Gleb
2. disable local irq when calling get_kernel_ns,
    as it was done by Peter Lieven <pl@amp.de>
3. move check for TSC page enable from second patch
    to this one.

v3 -> v4
    Get rid of ref counter offset.

v4 -> v5
    replace __copy_to_user with kvm_write_guest
    when updateing iTSC page.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/include/uapi/asm/hyperv.h
arch/x86/kvm/x86.c
include/uapi/linux/kvm.h