Commit af936220 authored by Max Gurtovoy's avatar Max Gurtovoy Committed by Zheng Zengkai
Browse files

vdpa_sim: remove hard-coded virtq count



stable inclusion
from stable-5.10.18
commit c721898723bc1478c7293fd5b8abcca670cbc536
bugzilla: 50148

--------------------------------

commit 423248d6 upstream.

Add a new attribute that will define the number of virt queues to be
created for the vdpasim device.

Signed-off-by: default avatarMax Gurtovoy <mgurtovoy@nvidia.com>
[sgarzare: replace kmalloc_array() with kcalloc()]
Acked-by: default avatarJason Wang <jasowang@redhat.com>
Signed-off-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20201215144256.155342-4-sgarzare@redhat.com


Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent ae78dce0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment