]> www.infradead.org Git - users/dwmw2/linux.git/commit
Merge tag 'kvm-x86-vcpu_array-6.14' of https://github.com/kvm-x86/linux into HEAD
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jan 2025 11:36:40 +0000 (06:36 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jan 2025 11:36:40 +0000 (06:36 -0500)
commit7a9164dc69fd56d0f5c4af6fce6552837b2b0bad
treea6f3b76cab45699813d8ad476c9ca96fc3c67e4c
parent4e4f38f84e68c6cf3bb2c70be949eb79cef01b7d
parent01528db67f28d5919f7b0a68900dc212165218e2
Merge tag 'kvm-x86-vcpu_array-6.14' of https://github.com/kvm-x86/linux into HEAD

KVM vcpu_array fixes and cleanups for 6.14:

 - Explicitly verify the target vCPU is online in kvm_get_vcpu() to fix a bug
   where KVM would return a pointer to a vCPU prior to it being fully online,
   and give kvm_for_each_vcpu() similar treatment to fix a similar flaw.

 - Wait for a vCPU to come online prior to executing a vCPU ioctl to fix a
   bug where userspace could coerce KVM into handling the ioctl on a vCPU that
   isn't yet onlined.

 - Gracefully handle xa_insert() failures even though such failuires should be
   impossible in practice.
include/linux/kvm_host.h
virt/kvm/kvm_main.c