]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: Get rid of return value from kvm_arch_create_vm_debugfs()
authorOliver Upton <oliver.upton@linux.dev>
Fri, 16 Feb 2024 15:59:41 +0000 (15:59 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 23 Feb 2024 21:44:58 +0000 (21:44 +0000)
commit284851ee5caef1b42b513752bf1642ce4570bdc1
tree48b0376a82573bbd737d7b13785c686520d0d46e
parent8cdc71fbf65567dca6f52aac206d91754ad55147
KVM: Get rid of return value from kvm_arch_create_vm_debugfs()

The general expectation with debugfs is that any initialization failure
is nonfatal. Nevertheless, kvm_arch_create_vm_debugfs() allows
implementations to return an error and kvm_create_vm_debugfs() allows
that to fail VM creation.

Change to a void return to discourage architectures from making debugfs
failures fatal for the VM. Seems like everyone already had the right
idea, as all implementations already return 0 unconditionally.

Acked-by: Marc Zyngier <maz@kernel.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20240216155941.2029458-1-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/powerpc/kvm/powerpc.c
arch/x86/kvm/debugfs.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c