]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: vmx: hook preemption timer support
authorYunhong Jiang <yunhong.jiang@intel.com>
Mon, 13 Jun 2016 21:19:59 +0000 (14:19 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jun 2016 08:07:50 +0000 (10:07 +0200)
commit80fd3a3f4c59195383f1ccde1cf536e618ff659f
tree910b3ca0406c6e4d5ac70f943e8d245427b2907a
parent1e782be0ab1791e529ec5172c6ccb3bc3a8d6773
kvm: vmx: hook preemption timer support

Hook the VMX preemption timer to the "hv timer" functionality added
by the previous patch.  This includes: checking if the feature is
supported, if the feature is broken on the CPU, the hooks to
setup/clean the VMX preemption timer, arming the timer on vmentry
and handling the vmexit.

A module parameter states if the VMX preemption timer should be
utilized.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
[Move hv_deadline_tsc to struct vcpu_vmx, use -1 as the "unset" value.
 Put all VMX bits here.  Enable it by default #yolo. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c