]> www.infradead.org Git - users/jedix/linux-maple.git/commit
um: virtio_uml: query the number of vqs if supported
authorBenjamin Berg <benjamin.berg@intel.com>
Sun, 3 Nov 2024 21:28:54 +0000 (22:28 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 7 Nov 2024 17:05:07 +0000 (18:05 +0100)
commit1d4d0ef84a7f386205ad141ff8727e027b0581e4
tree1bc20377b909d42e08c88e38283a1eac85cfb4fa
parentd85deadc17ee7e7154271cf1082bc0bb7aba3308
um: virtio_uml: query the number of vqs if supported

When the VHOST_USER_PROTOCOL_F_MQ protocol feature flag is set, we can
query the maximum number of virtual queues. Do so when supported and
extend the check to verify that we are not trying to allocate more
queues.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20241103212854.1436046-5-benjamin@sipsolutions.net
[add a message to the WARN_ON]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/drivers/vhost_user.h
arch/um/drivers/virtio_uml.c