On Wed, May 18, 2022, Oliver Upton wrote: > Hoist fd init to the very beginning of kvm_create_vm() so we can make "init" is a bit ambiguous, e.g. from a "can I use the fd" perspective the fd is still very much not initialized. Also, it's at the beginning of kvm_dev_ioctl_create_vm(), _before_ kvm_create_vm(). Allocate a VM's fd at the very beginning of kvm_dev_ioctl_create_vm() so that KVM can use the fd value to generate strings, e.g. for debugfs, when creating and initializing the VM. > use of it in other init routines. > > Signed-off-by: Oliver Upton <oupton@xxxxxxxxxx> > ---