• Yunhong Jiang's avatar
    kvm: vmx: hook preemption timer support · 64672c95
    Yunhong Jiang authored
    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: default avatarYunhong 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: default avatarPaolo Bonzini <pbonzini@redhat.com>
    64672c95
kvm_host.h 39.2 KB