linux-stable/virt/kvm
Sean Christopherson 906ea0086b KVM: Register /dev/kvm as the _very_ last thing during initialization
commit 2b01281273 upstream.

Register /dev/kvm, i.e. expose KVM to userspace, only after all other
setup has completed.  Once /dev/kvm is exposed, userspace can start
invoking KVM ioctls, creating VMs, etc...  If userspace creates a VM
before KVM is done with its configuration, bad things may happen, e.g.
KVM will fail to properly migrate vCPU state if a VM is created before
KVM has registered preemption notifiers.

Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221130230934.1014142-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-10 09:29:33 +01:00
..
Kconfig
Makefile.kvm
async_pf.c
async_pf.h
binary_stats.c
coalesced_mmio.c
coalesced_mmio.h
dirty_ring.c
eventfd.c
irqchip.c
kvm_main.c
kvm_mm.h
pfncache.c
vfio.c
vfio.h