Should KVM creation fail if debugfs fails?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Apologies if this has already been discussed but hasn't crossed my
eyes. It seems that KVM_CREATE_VM ioctl will fail with -ENOMEM if the
call to kvm_create_vm_debugfs() returns negative value. Is debugfs
essential for KVM operation?

I came across this when testing with a bpf-next kernel I manually
compiled, from around v4.17. Creating a VM from QEMU threw following
error:

ioctl(KVM_CREATE_VM) failed: 12 Cannot allocate memory

Running 4.19.0 kernel fixed the problem. Please note that
kvm_create_vm_debugfs() would not fail if debugfs hasn't been
registered at all.

Thanks,
Okash



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux