summary refs log tree commit diff stats
path: root/python/qemu/utils/accel.py
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2021-07-05 19:14:29 +0200
committerKevin Wolf <kwolf@redhat.com>2021-07-09 12:26:05 +0200
commit84affad1fd4c5251d7cccf4df43b29e9157983a9 (patch)
tree2a6ba36736ec1ac14a7d437959aa8236bb104b2c /python/qemu/utils/accel.py
parent6d2f38eb0e2be86af6904f1b768575cc64be37c2 (diff)
downloadfocaccia-qemu-84affad1fd4c5251d7cccf4df43b29e9157983a9.tar.gz
focaccia-qemu-84affad1fd4c5251d7cccf4df43b29e9157983a9.zip
vhost-user: Fix backends without multiqueue support
dev->max_queues was never initialised for backends that don't support
VHOST_USER_PROTOCOL_F_MQ, so it would use 0 as the maximum number of
queues to check against and consequently fail for any such backend.

Set it to 1 if the backend doesn't have multiqueue support.

Fixes: c90bd505a3e8210c23d69fecab9ee6f56ec4a161
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20210705171429.29286-1-kwolf@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'python/qemu/utils/accel.py')
0 files changed, 0 insertions, 0 deletions