vdpa_sim: make 'config' generic and usable for any device type
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 15 Dec 2020 14:42:49 +0000 (15:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Feb 2021 14:53:22 +0000 (15:53 +0100)
commit8faf3ea12225337d07623f61349cba9b6d78500b
treeb75a38868033861652085a40fbab7a8477f73207
parent0fb67eda6a9c67e206d87d5a68f424d4316fa74d
vdpa_sim: make 'config' generic and usable for any device type

commit f37cbbc65178e0a45823d281d290c4c02da9631c upstream.

Add new 'config_size' attribute in 'vdpasim_dev_attr' and allocates
'config' dynamically to support any device types.

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20201215144256.155342-12-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