mirror-linux/virt/kvm
Sean Christopherson 59320074af 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:34:11 +01:00
..
Kconfig KVM: Add KVM_CAP_DIRTY_LOG_RING_ACQ_REL capability and config option 2022-09-29 10:23:08 +01:00
Makefile.kvm
async_pf.c
async_pf.h
binary_stats.c
coalesced_mmio.c KVM: Destroy target device if coalesced MMIO unregistration fails 2023-03-10 09:34:11 +01:00
coalesced_mmio.h
dirty_ring.c KVM: Use acquire/release semantics when accessing dirty ring GFN state 2022-09-29 10:23:08 +01:00
eventfd.c
irqchip.c
kvm_main.c KVM: Register /dev/kvm as the _very_ last thing during initialization 2023-03-10 09:34:11 +01:00
kvm_mm.h
pfncache.c KVM: Update gfn_to_pfn_cache khva when it moves within the same page 2022-11-23 18:58:46 -05:00
vfio.c kvm/vfio: Fix potential deadlock on vfio group_lock 2023-02-01 08:34:36 +01:00
vfio.h