vdpa_sim: add struct vdpasim_dev_attr for device attributes
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 15 Dec 2020 14:42:44 +0000 (15:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Feb 2021 14:53:22 +0000 (15:53 +0100)
commit0ed8181561be3c335778e14cf46ed2d7a4f7d742
tree96610bfa1769291ca59dc15ad86804cc369efa0e
parentc721898723bc1478c7293fd5b8abcca670cbc536
vdpa_sim: add struct vdpasim_dev_attr for device attributes

commit 6c6e28fe45794054410ad8cd2770af69fbe0338d 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>
drivers/vdpa/vdpa_sim/vdpa_sim.c