vhost: return task creation error instead of NULL
authorKeith Busch <kbusch@kernel.org>
Thu, 27 Feb 2025 23:06:30 +0000 (15:06 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 1 Mar 2025 07:52:52 +0000 (02:52 -0500)
commitcb380909ae3b1ebf14d6a455a4f92d7916d790cb
treedd3d246e73d00711c6c1ed0fc6a2cce1a73c6c6d
parent982caaa1150479f022003390cd72a1941663d211
vhost: return task creation error instead of NULL

Lets callers distinguish why the vhost task creation failed. No one
currently cares why it failed, so no real runtime change from this
patch, but that will not be the case for long.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Message-ID: <20250227230631.303431-2-kbusch@meta.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
drivers/vhost/vhost.c
kernel/vhost_task.c