]> git.baikalelectronics.ru Git - kernel.git/commit
kvm/x86: Hyper-V HV_X64_MSR_VP_RUNTIME support
authorAndrey Smetanin <asmetanin@virtuozzo.com>
Wed, 16 Sep 2015 09:29:50 +0000 (12:29 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Oct 2015 13:06:33 +0000 (15:06 +0200)
commit86b4f61fd6d1e3fc7ed3637206dedb1e579563ca
tree52b64637f1d0f83baddbce10436aa9b36290f4db
parente8efced1f1dd70fb6a795b74b84ac3ab00eb6507
kvm/x86: Hyper-V HV_X64_MSR_VP_RUNTIME support

HV_X64_MSR_VP_RUNTIME msr used by guest to get
"the time the virtual processor consumes running guest code,
and the time the associated logical processor spends running
hypervisor code on behalf of that guest."

Calculation of this time is performed by task_cputime_adjusted()
for vcpu task.

Necessary to support loading of winhv.sys in guest, which in turn is
required to support Windows VMBus.

Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Gleb Natapov <gleb@kernel.org>
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/hyperv.c
arch/x86/kvm/x86.c
kernel/sched/cputime.c