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)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 18 Dec 2020 21:14:29 +0000 (16:14 -0500)
commitf37cbbc65178e0a45823d281d290c4c02da9631c
tree18cd3372d5228626bcc1d4bdb4287e0cd43e9a52
parentcf1a3b35382c10ce315c32bd2b3d7789897fbe13
vdpa_sim: make 'config' generic and usable for any device type

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