Merge tag 'kvm-x86-fixes-6.8-rcN' of https://github.com/kvm-x86/linux into HEAD
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Feb 2024 17:34:43 +0000 (12:34 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Feb 2024 17:34:43 +0000 (12:34 -0500)
commit22d0bc072102233f94006907f15d97ca6352adc4
tree8101552a7d9f2c28299cb8985f91103d9328acbf
parent841c35169323cd833294798e58b9bf63fa4fa1de
parent3376ca3f1a2075eaa23c5576c47d04d7e8a4adda
Merge tag 'kvm-x86-fixes-6.8-rcN' of https://github.com/kvm-x86/linux into HEAD

KVM x86 fixes for 6.8:

 - Make a KVM_REQ_NMI request while handling KVM_SET_VCPU_EVENTS if and only
   if the incoming events->nmi.pending is non-zero.  If the target vCPU is in
   the UNITIALIZED state, the spurious request will result in KVM exiting to
   userspace, which in turn causes QEMU to constantly acquire and release
   QEMU's global mutex, to the point where the BSP is unable to make forward
   progress.

 - Fix a type (u8 versus u64) goof that results in pmu->fixed_ctr_ctrl being
   incorrectly truncated, and ultimately causes KVM to think a fixed counter
   has already been disabled (KVM thinks the old value is '0').

 - Fix a stack leak in KVM_GET_MSRS where a failed MSR read from userspace
   that is ultimately ignored due to ignore_msrs=true doesn't zero the output
   as intended.
arch/x86/kvm/x86.c