vdpa_sim: add struct vdpasim_dev_attr for device attributes
stable inclusion from stable-5.10.18 commit 0ed8181561be3c335778e14cf46ed2d7a4f7d742 bugzilla: 50148 -------------------------------- commit 6c6e28fe upstream. vdpasim_dev_attr will contain device specific attributes. We starting moving the number of virtqueues (i.e. nvqs) to vdpasim_dev_attr. vdpasim_create() creates a new vDPA simulator following the device attributes defined in the vdpasim_dev_attr parameter. Co-developed-by:Max Gurtovoy <mgurtovoy@nvidia.com> Signed-off-by:
Max Gurtovoy <mgurtovoy@nvidia.com> Acked-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Stefano Garzarella <sgarzare@redhat.com> Link: https://lore.kernel.org/r/20201215144256.155342-7-sgarzare@redhat.com Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Stefano Garzarella <sgarzare@redhat.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Xie XiuQi <xiexiuqi@huawei.com>
Loading
Please sign in to comment