]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
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)
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.

1  2 
include/linux/kvm_host.h
virt/kvm/kvm_main.c

Simple merge
Simple merge