• Linus Torvalds's avatar
    Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 3370b69e
    Linus Torvalds authored
    Pull second batch of kvm updates from Paolo Bonzini:
     "Four changes:
    
       - x86: work around two nasty cases where a benign exception occurs
         while another is being delivered.  The endless stream of exceptions
         causes an infinite loop in the processor, which not even NMIs or
         SMIs can interrupt; in the virt case, there is no possibility to
         exit to the host either.
    
       - x86: support for Skylake per-guest TSC rate.  Long supported by
         AMD, the patches mostly move things from there to common
         arch/x86/kvm/ code.
    
       - generic: remove local_irq_save/restore from the guest entry and
         exit paths when context tracking is enabled.  The patches are a few
         months old, but we discussed them again at kernel summit.  Andy
         will pick up from here and, in 4.5, try to remove it from the user
         entry/exit paths.
    
       - PPC: Two bug fixes, see merge commit 37028975 for details"
    
    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (21 commits)
      KVM: x86: rename update_db_bp_intercept to update_bp_intercept
      KVM: svm: unconditionally intercept #DB
      KVM: x86: work around infinite loop in microcode when #AC is delivered
      context_tracking: avoid irq_save/irq_restore on guest entry and exit
      context_tracking: remove duplicate enabled check
      KVM: VMX: Dump TSC multiplier in dump_vmcs()
      KVM: VMX: Use a scaled host TSC for guest readings of MSR_IA32_TSC
      KVM: VMX: Setup TSC scaling ratio when a vcpu is loaded
      KVM: VMX: Enable and initialize VMX TSC scaling
      KVM: x86: Use the correct vcpu's TSC rate to compute time scale
      KVM: x86: Move TSC scaling logic out of call-back read_l1_tsc()
      KVM: x86: Move TSC scaling logic out of call-back adjust_tsc_offset()
      KVM: x86: Replace call-back compute_tsc_offset() with a common function
      KVM: x86: Replace call-back set_tsc_khz() with a common function
      KVM: x86: Add a common TSC scaling function
      KVM: x86: Add a common TSC scaling ratio field in kvm_vcpu_arch
      KVM: x86: Collect information for setting TSC scaling ratio
      KVM: x86: declare a few variables as __read_mostly
      KVM: x86: merge handle_mmio_page_fault and handle_mmio_page_fault_common
      KVM: PPC: Book3S HV: Don't dynamically split core when already split
      ...
    3370b69e
x86.c 212 KB